Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

chuaaa
chuaaa
Offline

Badges

Badges
0

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts

Posts
5

Discussions

Discussions
5

Questions

Questions
0

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by chuaaa
Customize the badges you want to showcase on your profile
Re: Unable to trigger Analytics from js - Adobe Analytics 28-09-2017
That would mean the entire content would be placed in the Parent page then? Is it not possible to simply insert the one line of Analytics into the while maintaining the rest in the HTML page? In case not all of the pages are intended to have the same Parent.

Views

1.3K

Likes

0

Replies

1
Re: Unable to trigger Analytics from js - Adobe Analytics 28-09-2017
I was hoping to only have 1 file containing either the Staging or Production script linked from all my HTML pages. That way if I have to change my Analytics link, I only have to switch one file instead of all the pages. So I asked if it's possible to put the script in a separate file and call it from .e.g.analytics.html:Actual HTML pages:<head><!--some script to insert analytics.html here--></head>etc.

Views

1.3K

Likes

0

Replies

3
Re: Unable to trigger Analytics from js - Adobe Analytics 28-09-2017
Actually, let me rephrase my question now.Is there a way for me to put the analytics src script in a separate file and then call it from the ?

Views

1.3K

Likes

0

Replies

5
Re: Unable to trigger Analytics from js - Adobe Analytics 27-09-2017
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 :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 after head has already been loaded. It's more about how to get DOM to execute...

Views

1.3K

Likes

0

Replies

0
Unable to trigger Analytics from js - Adobe Analytics 26-09-2017
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...

Views

1.6K

Likes

0

Replies

8