Hi there,
I'm trying to troubleshoot why I'm seeing my page load rules and SiteCatalyst code is appearing twice in my debugger tool. I've attached a screenshot that shows the SiteCatalyst account showing up twice and that shows "event10, event11, event10, event11" appearing to fire twice. The site I'm working on is: https://www.tysonfoods.com/
Is anyone out there able to help me troubleshoot this?
Thanks in advance!
Solved! Go to Solution.
Here's what I'm seeing:
I'm only seeing one GA tag and one AA tag fire.
The reason we are seeing different things has to do with timing:
Normal loading:
3b. if _satellite.pageBottom is not in the <body>, then DTM automatically calls pageBottom at DOM Ready.
However, with the defer html attribute:
I also noticed some timeout logic around the _satellite.pageBottom call. This isn't necessary instead, consider:
if(typeof _satellite == 'object') _satellite.pageBottom()
That should be the maximum amount of customization to that method necessary, since DTM will fire pageBottom automatically if it the _satellite object doesn't exist when that code is called.
Hope that helps!
Hi there,
I just checked https://www.tysonfoods.com/who-we-are and am not seeing this issue, however, I may have the solution to the problem:
It looks like the satellite library is getting loaded with a defer html tag.
This is a very big no-no when it comes to DTM, as it highly affects the timing of the DTM JS loading - essentially making DTM unsupported. Per this document, HTML script defer Attribute , causes the JS file to not execute until the page has finished parsing. And this will very largely affect DTM's ability to serve tags properly.
I couldn't recommend that this defer attribute be remove more highly.
Thank you so much! ericmatisoff Could you send a screenshot of what you are seeing in the debugger tool? I still see the SiteCatalyst account firing twice. I've since removed the page load rule to fire, so now I just see the account firing twice with the Google Account only firing once.
Views
Replies
Total Likes
Here's what I'm seeing:
I'm only seeing one GA tag and one AA tag fire.
The reason we are seeing different things has to do with timing:
Normal loading:
3b. if _satellite.pageBottom is not in the <body>, then DTM automatically calls pageBottom at DOM Ready.
However, with the defer html attribute:
I also noticed some timeout logic around the _satellite.pageBottom call. This isn't necessary instead, consider:
if(typeof _satellite == 'object') _satellite.pageBottom()
That should be the maximum amount of customization to that method necessary, since DTM will fire pageBottom automatically if it the _satellite object doesn't exist when that code is called.
Hope that helps!
Hi there, I don't see any issues myself, I wouldn't trust any 3rd party tool at this time as most of them are problematic, it's best to look at the image call itself or the metrics from without the Adobe UI.
I'll also remove all custom logic around _satellite.pageBottom(); and simply have it as the last thing on the page as such.
<script type="text/javascript">_satellite.pageBottom();</script>
</body>
</html>
Views
Likes
Replies