Chapter 2: Universal Analytics - edit

Great, you should now have Google Analytics installed and logging events. Before we continue, we need to make sure that we're using the right analytics.

In order to accomplish what we hope to accomplish (associating server-side events with a specific user), we need to make sure we are using the new Universal Google Analytics.

Sidenote: A really helpful tool is Google's Tag Assistant. Don't get it twisted with Google's Tag Manager which is a competitor to Segment.io (Segment is better)

Google provides its user's with two tracking libraries to use with Google Analytics. The first is the classic analytics library, which is what has been around for quite some time. If your site has been operating for a couple of years, and you haven't explicitly upgraded to the universal analytics then theres a fair chance that you are using the classic analytics.

An easy way to test is by using the Google Tag Assistant. If you are already using the new Universal Tracking library then you can continue on to the next section.

tag_manager_sxs.png

If you are using Classic Analytics and have been for a while, then you're going to need to upgrade. Fortunatly since we set (reset) everything up in Segment.io it's a piece of cake.

Before we update the snippet itself, you're gonna need to upgrade inside your Google Analytics dashboard. Head over to your admin section, and choose the property that you'd like to upgrade. Read through everything and make sure it sounds good, and then hit transfer.

ga_transfer_not_started.png

Go make a few more margaritas, it's gonna take Google 24-48 hours to upgrade you to the new Universal library.

ga_transfer_in_progress.png

Once that has completed it's simply a matter of making sure that Segment.io is loading the new Universal library (really we are making sure that Segment is NOT loading the classic library).

segment_classic_analytics.png

Go back to your site and make sure that Tag Assistant confirms that you are loading the new Universal Analytics and you're all set!

Chapter 2: Chapter 3: Google Analytics new User-ID Feature