moved all analytics snippets into segment.io to evaluate it