- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I think 1) is most likely the issue. But I think I might doing it wrong in that if even I put it like the below in the <body>:
document.addEventListener('DOMContentLoaded', function(){
var analytics = document.createElement('script');
analytics.src ='http://assets.adobedtm.com/someID-staging.js';
document.head.prepend(analytics);
}, false);
...The Analytics script still does not get executed because it's essentially added to the <head> after head has already been loaded. It's more about how to get DOM to execute the Analytics script after it's appended.
Views
Replies
0 Likes
Total Likes