09/18/2023, 9:44 PM
Is there a way to have different GA4 data sources for different environments? Production environment is tied to production GA4, development is tied to a dev GA4 setup?
09/19/2023, 3:05 AM
Yes, you can add multiple data sources
what’s the use case for having a data source for development?
09/19/2023, 12:46 PM
You could set it with environment variables, or if you use GTM just change GA4 tag with a variable based on hostname.
09/19/2023, 1:00 PM
To keep dev and production separate. Unless there is a different way. We have two separate instances of GA4, one for production and one for development.
09/19/2023, 1:10 PM
I want a similar setup in my org Erik. just to keep everything 100% separate. What I’m stuck with for now is separate GA audiences, based on hostname = rules.
09/20/2023, 3:51 AM
usually most people don’t bother tracking data from development
09/20/2023, 1:00 PM
While that's true, it does help us test or create new ways of tracking before it hits production.