Getting exception in utag.10.js

richard_udovich
Silver Contributor
Silver Contributor richard_udovich

Hey guys, could be a bug in utag.js or could be something i am doing wrong.

Calling the following tag:

 

utag.view({

  page_name:"product details page",

  enh_action:"detail",

  product_action_list:"aaa",

  product_sku_list:["bbb"],

  product_names:["ccc"],

  product_unit_prices:["11.00"],

  product_categories:["ddd"],

  product_positions:[1]

});

 

I saw no event been fired off...

 

After investigation further i found the problem in utag.10.js with the .set function throwing an exception because that method is not defined!

 

If anyone can check it out and let me know what the go is would be appreciated. (P.S. the line should be easy to find since there is only one “.set” method call...

 

else if (u.data.enh_action === "detail") {

                       u.addproduct("detail", 1, false);

                       g = {};

                       u.set(g, "list", u.data.product_action_list);

                       u.all("ec:setAction", "detail");

                   }

9 REPLIES 9

Getting exception in utag.10.js

Tealium Employee

Hi Richard

Can you point us to a URL of a page showing the problem?

Thanks

Mark

Getting exception in utag.10.js

brian_kranson
Employee Emeritus
brian_kranson

@richard_udovich

We are aware of this bug, however I am not sure when a new GUA template will be pushed out.  You can fix your current template by changing:

 

u.set(g, "list", u.data.product_action_list);

to:

u.setHitData(g, "list", u.data.product_action_list);

Brian

Getting exception in utag.10.js

richard_udovich
Silver Contributor
Silver Contributor richard_udovich
So do you guys have a list of these bugs somewhere?
Also where do I actually change the code you mentioned above?

Getting exception in utag.10.js

brian_kranson
Employee Emeritus
brian_kranson

@richard_udovich

Sorry I made the assumption you knew how to edit the tag template.  

 

 edit-1-20160114T163005.png

 

edit2-20160114T163221.png

 

 

Yes we have a list of these bugs, but the list is not public.

 

Brian

Getting exception in utag.10.js

richard_udovich
Silver Contributor
Silver Contributor richard_udovich

Thanks Brian

 

So, what happens when a new version of the tag comes out? 

Because i have modified this one... what would be the process of finding out there is a new version and updating to that newer version?

 

Regards

Richard

Highlighted

Getting exception in utag.10.js

Tealium Employee
This bug in the Google Universal Analytics template has been fixed.

Getting exception in utag.10.js

Tealium Employee

Hi

 

As mentioned, the bug has been fixed in the Tealium marketplace.

 

You have applied the same fix manually following Brian's instructions.  But you can reset the template to the latest version below to tidy everything up if you wish.

 

Generally, to update a tag to the latest template version, open the tag template as Brian has described above.  Take a copy of the current tag template code and save it in a text editor to a file.  This means if you later want to revert the template, you can.  Then in the top right corner of the code window, there is a trash can icon (see my screenshot attached).  If you click that, there is a warning about losing any customisations (see below).  If you click OK, all the template code for that tag will disappear. It will be reset to the latest version from the Tealium tag marketplace when you next save the Tealium iQ profile.

 

In your case, you don't have to worry about customisations since you only applied a fix that was subsequently released anyway.  However, it is possible in some cases that the template has been customised for a specific reason.  In that case, the best practice is to leave a comment in the top of the template code describing the customisation.

 

We also have a tool that will allow you to check all the tags in a Tealium iQ profile to see if their templates are up to date, or customised etc.  To run this, select Tag Status Checker from your login name in the Tealium iQ menu (see screenshot attached).  If you run that, it will produce a report showing you the status of your tags.

 

Thanks

Mark

 

 

Getting exception in utag.10.js

brian_kranson
Employee Emeritus
brian_kranson

@richard_udovich

One other practice I use for myself.  Before I hit that Trash Can Icon in @mark_reddin post, I will first Copy/Paste the contents and save them to a file on my own computer.  This way if I ever need to revert back to the template, I have a local copy I can Copy/Paste back into Tealium iQ.

 

Hope this helps.


Brian

Getting exception in utag.10.js

Tealium Employee

Good point Brian.  I have edited my post above.  It was me, not Steve Lake, by the way.

Mark