Reputation: 3
Im using Google analytic + Google Tag Manager.
My website have some versions of web: .dev (for development), .com (for public).
Code on two sites are the same. But when I make a purchase in .dev then data was collected to Google analytic too.
How can I config for GA only collect data in .com domain?
Upvotes: 0
Views: 205
Reputation: 484
You should use a rule (trigger) with {{url hostname}} equals yourdomain.com condition to fire your Google Analytics tag.
Upvotes: 1