- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
07-19-2019 01:32 PM
Hi,
I'm just starting to use tealium so forgive me if I'm missing somethign very simple here. Currently I'm just trying to test tealium on a SPA and trying to track page loads and events. Here what I have right now:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <div id="root"></div> <script type="text/javascript"> var utag_data = { "siteSection": "CONSUMER_PAGE" } </script> <script type="text/javascript"> (function(a,b,c,d){ a='//tags.tiqcdn.com/utag/{acction}/{profile}/dev/utag.js'; b=document; c='script'; d=b.createElement(c); d.src=a; d.type='text/java'+c;d.async=true; a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a) })(); setTimeout( () => { utag.link ({ "my_event": "test_event" }) }, 2000) </script> </body> </html>
I expected this snipped to add the test event and be able to view it in my dashboard but I don't see any activity when I launch my dashboard.
I can see all the data tagas being added when use the web companion but when I observe my network tab no requests are being sent on .link() or .view(). What am I missing here?
07-25-2019 04:04 AM
Hi
what exactly are you observing in your network tab?
Also download a tool called Tealium Utag Debugger for the Tealium custom tool, (https://community.tealiumiq.com/t5/iQ-Tag-Management/Tealium-Tools-Universal-Tag-UTAG-Debugger/ta-p/...)
I would also have a read through this document (https://docs.tealium.com/platforms/javascript/debugging/)
Unfortunately I can't be much help without actually seeing the website itself.
09-11-2020 03:58 AM
Hi,
Did you refer to the below dicumentation by Tealium?. Raise a ticket to Tealium support if this doesn't help.
https://docs.tealium.com/platforms/javascript/single-page-applications/#setup
09-11-2020 05:00 AM - edited 09-11-2020 05:05 AM
HI
the utag.link or utag.view in and of themselves don't create any calls, rather they are functions that re-run any pertient extensions and trigger vendor tags accordingly.
I recommedn the use of the Tealium Inspector, paste the code below into a bookmark....
javascript:(function(){window.open("","UDO Inspector","width=600,height=514,scrollbars=1"/*,resizable=1"*/).document.write('<script language="JavaScript" id="udoaudit" src="//tags.tiqcdn.com/utag/adrian-test/tools/dev/utag.4.js?'+Math.random()+'"><\/script>');}());
It logs the trackign calls so you can see them coming through.
Ciao
Gavin
09-11-2020 05:06 AM
HI
the utag.link or utag.view in and of themselves don't create any calls, rather they are functions that re-run any pertient extensions and trigger vendor tags accordingly.
I recommedn the use of the Tealium Inspector, paste the code below into a bookmark....
javascript:(function(){window.open("","UDO Inspector","width=600,height=514,scrollbars=1"/*,resizable=1"*/).document.write('<script language="JavaScript" id="udoaudit" src="//tags.tiqcdn.com/utag/adrian-test/tools/dev/utag.4.js?'+Math.random()+'"><\/script>');}());
It logs the trackign calls so you can see them coming through.
Ciao
Gavin
Copyright All Rights Reserved © 2008-2023