Sunday, September 13, 2015

Tracking user id using with Google Tag Manager

The User ID is definitely one of the coolest things about Universal Analytics, if used correctly. It might reveal some surprising insights about your visitors, since now you’re not restricted to analysing visitors as just browser or device instances as before, but rather you can build your stories around all the touch points the user might have had on their journey to and through your web properties.
With this simple tip, you can extend User ID tracking to return users without them needing to authenticate. This is done with a cookie.
Note! This means that the User ID will often persist on public computers, so the person you’re tracking might not actually be the same human (it might also be a llama with some tech skills).
This idea was inspired by the comments in Annie Cushing’s blog post: Why Google Analytics User Metrics Are BS [For Most Sites]. Especially the comments by John Mitchell and Christopher Mitchell were particularly insightful.