This topic discusses a solution to a typical issue you might experience with Google Analytics during deployment.
When deploying your code across environments, the build and deploy scripts verify the
master/production/staging branch is deployed to keep Google Analytics enabled. When deploying develop (or child) branches of master to developer environments (Integration), the deploy script disables Google Analytics.
This is an intended feature to ensure that developer data and interactions are not sent to or tracked by Google Analytics.
If you want to have Google Analytics always enabled, set the deploy variable
ENABLE_GOOGLE_ANALYTICS = true, as described in Deploy variables in our developer documentation.
We are aware that this article may still contain industry-standard software terms that some may find racist, sexist, or oppressive and which may make the reader feel hurt, traumatized, or unwelcome. Adobe is working to remove these terms from our code, documentation, and user experiences.