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: var analytics =
document.createElement('script'); analytics.src
='//assets.adobedtm.com/someID-staging.js';
document.head.prepend(analytics);and similar for the footer
portion.However, even though the script is seen as added properly to the
t...