lebinjose

Installing same gtag manager script in two websites (stagging and Production website)

by @lebinjose (121), 5 days ago

Hello friends, Hope you all do well, I have a question about g-tag manager. actully I have two sites, one is stagging site another one is production website. I have Gtag code inserted in Production site, But i do all my content update works in stagging site and migrate it to production site. As there is no gtag included in stagging site live site got replaced with stagging site and gtag verify script got vanished. So shall I use the same scrtipt in both sites? for stagging and production site? Please help me with this. Thank you!

41 Views
0 Upvotes
3 Replies
2 Users
Sort replies:
binayjha
by @binayjha (5644), 2 days ago

I have a few queries before I answer. Is the stagging site used to upload the content and verify before using those on the production website?

If there is no commercial use of the staging site then it should be barred from indexing even.

lebinjose
by @lebinjose (121), 2 days ago

Thanks for your reply! Yeah, what ever changes to made in my website, I will update in stagging site and verify it. After updating it i will migrate the stagging db to production site db. So shall i use one gtag manager verification code in both site(i will not allow stagging site indexing from google manualy

binayjha
by @binayjha (5644), 2 days ago

One gtag manager verification code can be used for multiple domains. More information is at the below link,

https://developers.google.com/tag-platform/devguides/cross-domain

Join the forum to unlock true power of SEO community

You're welcome to become part of SEO Forum community. Register for free, learn and contribute.

Log In Sign up
SEO Directory for agencies
Want to see your Ad here?

Do you have a product or service you'd like to promote on Seoforum? It's easy. Contact us.