Expand my Community achievements bar.

SOLVED

Integrating adode analytics with aem

Avatar

Level 2

I want to integrate adobe analytics with AEM and I followed this link:https://helpx.adobe.com/experience-manager/using/analytics.html 

Where and how can we find the reports generated in adobe analytics site??

1 Accepted Solution

Avatar

Correct answer by
Employee

ashwiniv49870807 wrote...

Hi tanmay,

I'm getting error as "CQ_Analytics.Sitecatalyst is undefined" how to fix it. I hv included "clientcontext" and "cloudservices" in the page.

 

Hi Ashwini,

There is this troubleshooting document which has a checklist you can use to ensure everything is correct - https://helpx.adobe.com/experience-manager/kb/sitecatalystintegrationtroubleshooting.html

Also, this forum thread had a similar issue and might be of some help too - http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

ericmatisoff wrote...

I realize this isn't a huge amount of heads up, but, there will be a webinar TODAY on integrating AEM and Adobe Analytics. 8:30 pm (IST) / 11:00 am (EST). You can join in by hopping in the connect room https://communities.adobeconnect.com/aemtech. Note that if you can't make it in time (it starts in <20 minutes) it will be recorded and I'll share the link here as well.

Hope that helps!

 

Here is the link for the webinar mentioned by eric - http://bit.ly/ATACE3282107

View solution in original post

11 Replies

Avatar

Employee

Hi Ashwini, 

Welcome to the Analytics Community. Please introduce yourself to the community here.

At what step of the integration are you? If it is successfully done, you would have to login into Adobe Analytics and go into Reports. You will find the menu of reports there. 

I hope that helps.

Tanmay

Avatar

Level 2

hi Tanmay

I am using AEM 6.2.Configuration of adobe analytics with aem is completed. We created analytics framework and added analytics topnav component and it includes "onclick" event in topnav component. Rendered topnav component on the page.We suppose get reports based on onclick event (when we click on the link on page) as mentioned in above link. I'm not able to find the reports and please suggest me where to see the reports in adode analytics website.

Avatar

Employee

Hi Ashwini,

Inside the Analytics UI, click on the 'Reports' tab on the top rail. If you want to see the events report you can search for it by writing the event name. The data starts populating couple of hours after the activity so don't worry if there is no data. 

If you are still facing a problem, please send me a screenshot so i can better figure out your issue. Thanks.

Tanmay

Avatar

Level 2

Hi tanmay,

I'm getting error as "CQ_Analytics.Sitecatalyst is undefined" how to fix it. I hv included "clientcontext" and "cloudservices" in the page.

Avatar

Employee Advisor

I realize this isn't a huge amount of heads up, but, there will be a webinar TODAY on integrating AEM and Adobe Analytics. 8:30 pm (IST) / 11:00 am (EST). You can join in by hopping in the connect room https://communities.adobeconnect.com/aemtech. Note that if you can't make it in time (it starts in <20 minutes) it will be recorded and I'll share the link here as well.

Hope that helps!

Avatar

Correct answer by
Employee

ashwiniv49870807 wrote...

Hi tanmay,

I'm getting error as "CQ_Analytics.Sitecatalyst is undefined" how to fix it. I hv included "clientcontext" and "cloudservices" in the page.

 

Hi Ashwini,

There is this troubleshooting document which has a checklist you can use to ensure everything is correct - https://helpx.adobe.com/experience-manager/kb/sitecatalystintegrationtroubleshooting.html

Also, this forum thread had a similar issue and might be of some help too - http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

ericmatisoff wrote...

I realize this isn't a huge amount of heads up, but, there will be a webinar TODAY on integrating AEM and Adobe Analytics. 8:30 pm (IST) / 11:00 am (EST). You can join in by hopping in the connect room https://communities.adobeconnect.com/aemtech. Note that if you can't make it in time (it starts in <20 minutes) it will be recorded and I'll share the link here as well.

Hope that helps!

 

Here is the link for the webinar mentioned by eric - http://bit.ly/ATACE3282107

Avatar

Level 1

hi tanmay,

I am working with aswini on the same issue.I am attaching my topnav.jsp 

<%@page session="false"%><%-- Copyright 1997-2008 Day Management AG Barfuesserplatz 6, 4001 Basel, Switzerland All Rights Reserved. This software is the confidential and proprietary information of Day Management AG, ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the license agreement you entered into with Day. ============================================================================== Top Navigation component Draws the top navigation --%><%@include file="/libs/foundation/global.jsp"%><% %><%@ page import="java.util.Iterator, com.day.text.Text, com.day.cq.wcm.api.PageFilter, com.day.cq.wcm.api.Page, com.day.cq.commons.Doctype, org.apache.commons.lang3.StringEscapeUtils" %><% // get starting point of navigation long absParent = currentStyle.get("absParent", 2L); String navstart = Text.getAbsoluteParent(currentPage.getPath(), (int) absParent); //if not deep enough take current node if (navstart.equals("")) navstart=currentPage.getPath(); Resource rootRes = slingRequest.getResourceResolver().getResource(navstart); Page rootPage = rootRes == null ? null : rootRes.adaptTo(Page.class); String xs = Doctype.isXHTML(request) ? "/" : ""; if (rootPage != null) { Iterator<Page> children = rootPage.listChildren(new PageFilter(request)); String v1 = "Link "; while (children.hasNext()) { Page child = children.next(); %><a onclick = "tracknav('<%= child.getPath() %>.html')" href="<%= xssAPI.getValidHref(child.getPath()) %>.html"><% %><img alt="<%= xssAPI.encodeForHTMLAttr(child.getTitle()) %>" src="<%= xssAPI.getValidHref(child.getPath()) %>.navimage.png"<%= xs %>></a><% } } %> <script type="text/javascript"> function tracknav(target) { if (CQ_Analytics.Sitecatalyst) { CQ_Analytics.record(                     { event: 'topnavClick', values: { topnavTarget: target, topnavLocation:'<%=currentPage.getPath() %>.html' }, componentPath: '<%=resource.getResourceType()%>' }); } } </script> 

 

the below code is my component.jsp

<html> <%@include file="/libs/foundation/global.jsp" %> <cq:include script="/libs/wcm/core/components/init/init.jsp"/> <body> <cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/> <cq:include path="topnav" resourceType="/apps/analytics-example/components/topnav" /> <h1>Here is where your AEM component will go</h1> <cq:include path="par" resourceType="foundation/components/parsys" /> <cq:include path="cloudservices" resourceType="cq/cloudserviceconfigs/components/servicecomponents"/> </body> </html>

initially we are getting the following error "CQ_Analytics.Sitecatalyst is undefined" and after adding  "clientcontext"  and  "servicecomponents" that error is gone.Still we cannot find report for "topnavClick" event in adobe analytics website.Can you give information regarding where i can find my report for event in adobe Analytics website.... 

Avatar

Level 2

I am able to send the request for adobe-analytics website and below is the following request url sent after clicking on the link present on parent page(By clicking on the link event will get triggered)..But the event is not getting registered in analytics website...Pls verify the url and suggest any missing parameters that has to be sent from my webpage..

http://wiprolimitedpartnersandbox.sin2.sc.omtrdc.net/b/ss/wiprosandwepharma/1/H.27.4/s55895859950933...

Avatar

Employee Advisor

Hi Ashwini,

Here's what I'm seeing in that request:

report suite: wiprosandwepharma
s_code version: H.27.4(you may want to consider migrating to AppMeasurement as it's the latest and greatest way to deploy Adobe Analytics)
pageName: content:Parent:Child 
URL being tracked: http://localhost:4502/content/Parent/Child-html 

Hope that helps! My suggestion would be to set up a Real Time report in that report suite so you can confirm that data is flowing in. This report will get populated with data within just a few seconds of the tag firing.
Here are some instructions for setting up a Real Time report via the Adobe Analytics admin console:
https://marketing.adobe.com/resources/help/en_US/reference/t_realtime_admin.html

Avatar

Level 5

ashwiniv49870807 wrote...

I am able to send the request for adobe-analytics website and below is the following request url sent after clicking on the link present on parent page(By clicking on the link event will get triggered)..But the event is not getting registered in analytics website...Pls verify the url and suggest any missing parameters that has to be sent from my webpage..

http://wiprolimitedpartnersandbox.sin2.sc.omtrdc.net/b/ss/wiprosandwepharma/1/H.27.4/s55895859950933...

 

Reading this forum & other similar forums, it seems that Dynamic Tag Management tool is more enhanced & flexible solution to integrate AEM & Adobe Analytics.

Regarding your query, although not much user friendly, within Adobe Analytics navigate to 

Reports -> Site Content -> Links -> Legacy ClickMap

It'll show up page-wise (ex. content:Parent) link clicks (ex. http://localhost:4502/content/Parent/Child.html)

This is just a workaround, not a preferred option.


I would personally prefer to use a custom Adobe Analytics event (instead of Page Views) to represent a click on particular section of web-site to map CQ variable "eventdata.events.topnavClick".

 

Regards,

Saurabh Kumar.

Avatar

Employee Advisor

Hi Saurabh,

Yes - HIGHLY recommend using DTM. In fact, AEM has a Cloud Service specifically for deploying it, as well as the concept of a ContextHub for improved metadata population in the DOM.

Here is a link to the Knowledge Base for DTM:

https://marketing.adobe.com/resources/help/en_US/dtm/gs/