[Common Issue] Making analytics distinguish between deployed branches


Especially useful if you are running split tests, or want to be sure that you are only viewing analytics data related to you production branch, with Snippet Injection, you can modify the analytics code injected into each page of your site.

Snippet injection is configurable in your site’s deploy settings and give access to environment variable including things like the active branch for that build.


The video below (~5 mins) walks through setting this up.