getting error message Uncaught TypeError: Cannot read property 'tid' of undefined

Rookie Contributor

getting Uncaught TypeError: Cannot read property 'tid' of undefined while running a jQuery onHandler(1.7 and aboove) extension on DOM ready . The code stops executing after this and tag doesn't fire . What could be the reason. How to resolve/avoid this .

Thanks,
Aditya

1 REPLY 1

getting error message Uncaught TypeError: Cannot read property 'tid' of undefined

Tealium Employee

Good afternoon,

Are you triggering a custom link event within this extension? I've seen this occur when calling a tag that doesn't exist in the given profile.

In the example below, I have an extension set up with a custom event that's trying to trigger UID #999, which doesn't exist in my profile. As a result, I'll receive an "Uncaught TypeError: Cannot read property 'tid' of undefined" in the console. To resolve, I had to insert a valid/existing UID #. 

Hope this helps.

Mike

tid.png

Public