Coco Xinhxan
Coco Xinhxan

Reputation: 3

Google Tag Manager for One main Domain

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

Answers (1)

mrbubu
mrbubu

Reputation: 484

You should use a rule (trigger) with {{url hostname}} equals yourdomain.com condition to fire your Google Analytics tag.

Upvotes: 1

Related Questions