Why am I getting a JS error from utag.js?

hai_ly
Not applicable
hai_ly
SyntaxError: invalid property id ...'',function(e){if(jQuery('').is(':visible')){utag.link({:''})}})}}catch(e){};}}
3 REPLIES 3

Why am I getting a JS error from utag.js?

Tealium Employee
Hi Hai, The error is within: utag.link({:''}) There is no variable name in the object. The correct syntax should be: utag.link({var:''}) It looks like you might be trying to dynamically create the variable name and value so there may be an issue there.

Why am I getting a JS error from utag.js?

jared_hislop
Employee Emeritus
jared_hislop
Hey Hai, That looks like a jQuery on Handler Extension that wasn't configured properly. I would look for an jQuery onHandler extension in your profile that doesn't appear to be configured and disable that extension. See if that takes care of it. If that doesn't fix it, I would reach out to your Account Manager and a Solution Engineer will be able to dig deeper.
Highlighted

Why am I getting a JS error from utag.js?

andrew_rose
Not applicable
andrew_rose
Hello Hai, It appears that the id for the jQuery is invalid. As shown in the example, "jQuery('')" is an invalid selector and needs to be corrected. Also, the "utag.link({:''})" is also invalid as it is missing information inside of the brackets ({}). It would normally look something like this: function(e){if(jQuery('#purple').is(':visible')){utag.link({parameter:'value'})}})}}catch(e){};}} Hopefully, this helps you to troubleshoot the issue further. If you need additional assistance, I would recommend contacting your Account Manager or Solutions Engineer. Thanks, Andrew Rose Solutions Engineer