Expand my Community achievements bar.

Generic Analytics Snippet not showing up in view source. Only empty <div class="cloudservice generictracker">

Avatar

Level 3

1. I added a Generic Analytics Snippet under Tools > Cloud Services Configurations.
2. I added the Generic Analytics Snippet in Page Properties > Cloud Services 
3. I published the page, checking All Configurations. 

When viewing the source of the page I only get: 

<div class="cloudservice generictracker">
</div>

No script inside. What could be the problem?

7 Replies

Avatar

Level 10

When you test you connection to Analytics - is it successful? 

Avatar

Level 3

Hi

I don't have a component as depicted in your screenshot. I followed the documentation found here: http://docs.adobe.com/content/docs/en/cq/5-5/administering/external_providers.html

I also verified that:

<sly data-sly-include="/libs/cq/cloudserviceconfigs/components/servicelibs/servicelibs.jsp" data-sly-unwrap/> is included in the head

<sly data-sly-resource="${@ resourceType='cq/cloudserviceconfigs/components/servicecomponents'}" data-sly-unwrap/> is included at the end of the body.

Still no luck

Avatar

Level 10

See this community article - it talks about how to hook Analytics into an Adobe component (JSP)

https://helpx.adobe.com/experience-manager/using/analytics.html

Avatar

Level 3

Adobe Analytics is next, but first we need to set up Google Analytics.

Avatar

Level 3

6.1 actually. Is there a newer/better way of doing it in 6.1, since the documentation is only updated to 5.6.1?