- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
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 !!
09-18-2017 05:55 AM - last edited on 09-18-2017 07:31 AM by kathleen_jo
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.
09-18-2017 07:32 AM - last edited on 09-18-2017 07:34 AM by kathleen_jo
@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.
09-19-2017 04:17 AM - last edited on 09-19-2017 07:30 AM by kathleen_jo
@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.
09-19-2017 07:44 AM - last edited on 09-19-2017 07:58 AM by kathleen_jo
Thank you all, it makes perfect sense now @STerjeson!
09-19-2017 07:45 AM - last edited on 09-19-2017 07:57 AM by kathleen_jo
09-19-2017 07:47 AM - last edited on 09-19-2017 07:55 AM by kathleen_jo
OMG! I can FEEL the love!!! #lovelovelove #teehee
Thanks for the help @AndreScholten @Rishabh and @STerjeson! #toodles
Copyright All Rights Reserved © 2008-2023