adding utag.js dev and prod version

hcerus
Frequent Visitor
hcerus

Hi Guys, a very basic question about adding tealium utag.js code to the site.

 

In the code centre there are 3 code snippets, for Dev, QA, Prod . Let say I want to only use dev for testing and prod for public facing, do I install both dev and prod snippets on the same site--> publish a new tag to dev environment, ---> test it with web companion selected to "dev",-->  if ok then publish to live --> use web companion again selected to "prod" for final test.

 

is this correct ? I am confused particularly on where to install each version of snippet (utag dev,utag prod) and using the web companion environment selector.

 

if I have 2 different sites :dev site with the latest change and current prod site (soon to be revised); do i install both utag dev and utag prod to the dev site ?

 

Thanks !!

7 REPLIES 7
Highlighted

adding utag.js dev and prod version

AndreScholten
Visitor
AndreScholten

Hi @hcerus. Always use 1 version on a site. By using the DEV script Tealium will load the DEV environment by default, and by using the PROD version on the production-site it will load the PROD environment. You can always override that with the WebCompanion so you can test the DEV environment on the live site.

Freelance Web Analist

adding utag.js dev and prod version

STerjeson
Regular Visitor
STerjeson Regular Visitor

@AndreScholten is correct, always only use 1 version of the code snippit or you will end up loading the container twice (once for the dev environment and once for the prod environment configurations), @hcerus.

 

Reasons you would implement dev inside the dev environment is (for example) creating a rule that sends all analytics data to a "dev" report suite ID, so you do not pollute your production data environment with testing data. That same rule could detect the prod, or staging environments as well and pass the correct report suite ID's for your environment dynamically.

adding utag.js dev and prod version

Rishabh
Visitor
Rishabh

@hcerus, you can also use "Domain based Deployment" Extension of Tealium, with the help of which you have to put production script on the website and in tealium , you can decide, if the domain name is of QA sites, then to load QA script of tealium.

Please see https://community.tealiumiq.com/t5/iQ-Tag-Management/Domain-Based-Deployment-Extension/ta-p/13703 for more details.

adding utag.js dev and prod version

hcerus
Frequent Visitor
hcerus

Thank you all, it makes perfect sense now @STerjeson!

adding utag.js dev and prod version

hcerus
Frequent Visitor
hcerus

thanks @Rishabh!

adding utag.js dev and prod version

hcerus
Frequent Visitor
hcerus

thanks @AndreScholten!

adding utag.js dev and prod version

tamedbeast
Contributor
tamedbeast

OMG! I can FEEL the love!!! #lovelovelove #teehee

 

Thanks for the help @AndreScholten @Rishabh and @STerjeson! #toodles

If you liked it then you should have put a kudo on it!