dataLayer snippet and variable access in Tealium

Rookie Contributor
#tealium #dataLayer
Hi everyone, I am preparing dataLayer spec for a client and I have 2 questions as they use Tealium.
  1. If we want to render a dL object (on page view event)  and have access to the values, should dL snippet be placed in the <head> above Tealium snippet? Logically speaking... it should works exactly like in GTM-dL case..?
  2. As I see in Tealium doc, object pushed to dL should be visible in Tealium. But what's next?
I assume I will be able to access this object's values somehow (using js objectName.propertyName?) in Tealium interface?

Thanks in advance!
tealium events.png

dataLayer snippet and variable access in Tealium

Tealium Employee

Hi @PawelAntoniak 



I'm slightly confused with "<head> above Tealium snippet?".

Following the document:, 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:


        <script type="text/javascript" src=""></script>
        <!--Google Tag Manager-->
            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='' + i + dl; f.parentNode.insertBefore(j, f);
            })(window, document, 'script', 'dataLayer', 'GTM-******');
                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: