- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
11-10-2021 12:32 AM
11-13-2021 02:59 AM - edited 11-13-2021 03:02 AM
I'm slightly confused with "<head> above Tealium snippet?".
Following the document: https://docs.tealium.com/platforms/google-tag-manager/install/, it should all be done in GTM.
If the expectations is to track a "page_load" event you might want to consider adding a new event to the dataLayer array after its available. Following the GTM documentation:
here's an example:
<head> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <!--Google Tag Manager--> <script> var dataLayer = dataLayer || []; (function (w, d, s, l, i) {w[l] = w[l] || []; w[l].push({'gtm.start': new Date().getTime(), event: 'gtm.js'});var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src='https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-******'); dataLayer.push({ event : "page_load", page_name : "main", page_category : "generic", authenticated : false });
Thats correct, if the client side Collect Tag installation in GTM was successful, it should now be possible to see the event with its payload arriving in Tealium's CDH.
Live Events:
Next steps are based on Use Case requirements:
02-18-2022 09:43 AM
I have the Tealium Collect Tag and the Tealium Data Enrichment Tag installed into GTM. When the page loads, there is an "i.gif" with a payload of the page load data. The event name sent to EventStream is "gtm.js".
However, that is the only event I can get to show up in EventStream. If I push that "test_number" event to the dataLayer, I do not see i.gif and because of that, I do not see anything in EventStream. What am I doing wrong? From what I understood, any pushes to the dataLayer that have an event defined should automatically trigger sending another i.gif
Copyright All Rights Reserved © 2008-2023