Data Layers go missing when not logged into website

Hi,

I have implemented data layers through Google Tag Manager. The tracking works perfectly when logged in. However, when I log out, the tracking all goes away. I think it may be a Cornerstone issue, because all of the Cornerstone pages are no longer including the extra code.

For instance, I have this in my Cornerstone page template when logged in:

<div class="cta_tran_blue" style="float:right!important;" data-locationclick="gtm-click-internal" data-label="Blog Post" data-location="Homepage" data-section="Member Highlights" data-position="Box 1">Learn More</div>

When logged out, it shows this:
<div class="cta_tran_blue" style="float:right!important">Learn More</div>

Any insight as to why this is?

Hello There,

Thanks for writing in! Please edit your page in Cornerstone and use Raw Content element and insert your code:

<div class="cta_tran_blue" style="float:right!important;" data-locationclick="gtm-click-internal" data-label="Blog Post" data-location="Homepage" data-section="Member Highlights" data-position="Box 1">Learn More</div>

Only the raw content element preserves your code. If you use text element, it will remove some parts of the code.

Hope this helps.

1 Like

Thank you @RueNel, that worked.

Glad it’s working now.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.