- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi, I am trying to implement Adobe Analytics in my website which is run by CMS (Adobe Experience Manager to be specific), and I have built a component which user can place into the website content and then choose whether to generate the Staging or Production code, and upon selection the component will append the script to the header and footer.
The script which does the appending looks like this:
<script>
var analytics = document.createElement('script');
analytics.src ='//assets.adobedtm.com/someID-staging.js';
document.head.prepend(analytics);
</script>
and similar for the footer portion.
However, even though the script is seen as added properly to the <head> tag, Adobe Debugger is not detecting it.
Please help.
Views
Replies
Total Likes