- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
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");
}
Hi Richard
Can you point us to a URL of a page showing the problem?
Thanks
Mark
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
Sorry I made the assumption you knew how to edit the tag template.
Yes we have a list of these bugs, but the list is not public.
Brian
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
01-15-2016 05:31 AM - edited 01-15-2016 11:09 AM
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
01-15-2016 09:59 AM - edited 01-15-2016 11:18 AM
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
Good point Brian. I have edited my post above. It was me, not Steve Lake, by the way.
Mark
Copyright All Rights Reserved © 2008-2023