Highlighted

How can you tell which version of utag.js that you are loading?

Not applicable
 
10 REPLIES 10
Highlighted

How can you tell which version of utag.js that you are loading?

Employee Emeritus
In your browser developer tools, on your site coded with utag.js, find utag.js in either the network or sources tab (using Chrome) inspect the file, the first line of utag.js contains the version number.
Highlighted

How can you tell which version of utag.js that you are loading?

Employee Emeritus

Hello Hai;

 

There are a few ways you can achieve this.

 

1. in any developer browser tool, you can run this command "utag.cfg" or "utag.cfg.v" in the JS console of choice which will show you current version running.

2. You can also in any network tab of developer tools find the utag.js file and click on it and look for the version number in the top line.

Highlighted

How can you tell which version of utag.js that you are loading?

Employee Emeritus
The easiest ways would probably be to: 1) Go to the site in question 2) Open the dev tools for that browser (F12 on PC / CMD+Option+I on Mac) 3) In the Console tab type in "utag.cfg.v" and hit Enter OR 3) Open the Sources or Debugger tab 4) Locate and open the utag.js file -> In Chrome Dev Tools there is a little arrow in the upper left hand corner under the magnifying glass. Click on that and just start typing "utag.js" and click on the file when it appears. -> In FireFox, in the debugger tab, the files are listed on the left hand side of the screen. Scroll until you find the utag.js file and click on it. 5) Do a search (ctrl+F or Cmd+F) for "ut4." 6) This will show the version of utag.js.
Highlighted

How can you tell which version of utag.js that you are loading?

Tealium Employee
You can also do: utag.cfg.v In the browser console and this will output the current version with the timestamp of the last publish, below is an example: ut4.26.201404091009
Ask me anything Tealium related or Javascript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.
Highlighted

How can you tell which version of utag.js that you are loading?

Employee Emeritus
Just to note there are a few different interpretations of what "version" means: 1. utag.js version: This version will sometimes be properly commented on versions 4.26+ at the top of the utag.js file. Prior versions will only say 4.0. The utag.cfg.v method is the best to detect what you have. 2. Publish version, which is identifiable using the time stamp described in other responses. This is often used to see if your publish got updated yet. 3. Publish environment: DEV, QA and PROD. This can be found in the pathname of the file you're calling.
Highlighted

How can you tell which version of utag.js that you are loading?

Not applicable
Do you know what's the best way to update the Tealium Utag version? I know simply publishing the tag doesn't do it.
Highlighted

How can you tell which version of utag.js that you are loading?

Employee Emeritus
Hello Rohan; Correct, to update to latest version: 1. Go to Manage Templates under the admin menu 2. Go to utag loader template 3. **Best Practice** Copy the code from the current utag and save it in a text file as backup. 4. Click the trashcon icon to delete the template. 5.Then publish your profile to dev or environment as appropriate. 6. You will now see you are updated to the latest version of utag.js hope that helps! -bahman
Highlighted

How can you tell which version of utag.js that you are loading?

Employee Emeritus

Rohan, Make sure you consult with your Account Manager before updating to version 4.2x because of some of the feature enhancements that were made in those version. Here is a link to the release notes for those version: https://community.tealiumiq.com/t5/2-Tealium-iQ-Documentation/SERIES-utag-js-Release-Notes/ta-p/5549

Highlighted

How can you tell which version of utag.js that you are loading?

Employee Emeritus

Make sure you consult with your Account Manager before updating to version 4.2x because of some of the feature enhancements that were made in those version. Here is a link to the release notes for those version: https://community.tealiumiq.com/t5/2-Tealium-iQ-Documentation/SERIES-utag-js-Release-Notes/ta-p/5549

Highlighted

How can you tell which version of utag.js that you are loading?

Not applicable
Thanks Guys!