Connecting to ÃÛ¶¹ÊÓƵ Analytics and Creating Frameworks connecting-to-adobe-analytics-and-creating-frameworks
To track web data from your AEM pages in ÃÛ¶¹ÊÓƵ Analytics, create an ÃÛ¶¹ÊÓƵ Analytics Cloud Services configuration and an ÃÛ¶¹ÊÓƵ Analytics framework:
- ÃÛ¶¹ÊÓƵ Analytics Configuration: The information about your ÃÛ¶¹ÊÓƵ Analytics account. The ÃÛ¶¹ÊÓƵ Analytics configuration enables AEM to connect to ÃÛ¶¹ÊÓƵ Analytics. Create an ÃÛ¶¹ÊÓƵ Analytics configuration for each account that you use.
- ÃÛ¶¹ÊÓƵ Analytics Framework: A set of mappings between ÃÛ¶¹ÊÓƵ Analytics report suite properties and CQ variables. Use a framework to configure how your website data populates your ÃÛ¶¹ÊÓƵ Analytics reports. Frameworks are associated with an ÃÛ¶¹ÊÓƵ Analytics configuration. You can create multiple frameworks for each configuration.
When you associate a web page with a framework, the framework performs tracking for that page and the descendants of that page. Page views can then be retrieved from ÃÛ¶¹ÊÓƵ Analytics and displayed in the Sites console.
Prerequisites prerequisites
ÃÛ¶¹ÊÓƵ Analytics Account adobe-analytics-account
To track AEM data in ÃÛ¶¹ÊÓƵ Analytics, you must have a valid ÃÛ¶¹ÊÓƵ Experience Cloud ÃÛ¶¹ÊÓƵ Analytics account.
The ÃÛ¶¹ÊÓƵ Analytics account must:
- Have Administrator privileges
- Be assigned to the Web Service Access user group.
Before proceeding, ensure that your credentials let you log in to ÃÛ¶¹ÊÓƵ Analytics. By way of either of the following:
Configuring AEM to Use Your ÃÛ¶¹ÊÓƵ Analytics Data Centers configuring-aem-to-use-your-adobe-analytics-data-centers
ÃÛ¶¹ÊÓƵ Analytics data centers collect, process, and store data associated with your ÃÛ¶¹ÊÓƵ Analytics report suite. Configure AEM to use the data center that hosts your ÃÛ¶¹ÊÓƵ Analytics report suite. The data center is mentioned in your contract. Contact an Admin in your organization for this information.
If necessary, use the following to be routed to the correct data center: https://api.omniture.com/
.
If your organization requires data collection or retrieval from a specific data center, use the following:
https://api3.omniture.com/
https://api4.omniture.com/
https://api5.omniture.com/
Use the Web Console to configure the OSGi bundle ÃÛ¶¹ÊÓƵ AEM Analytics HTTP Client. Add the Data Center URL for the data center that hosts a report suite for which your AEM pages collect data.
-
Open the Web console in your web browser. ()
-
To access the console, enter your credentials.
note note NOTE To find out if you have access to this console, contact you site administrator. -
Select the Configuration item named ÃÛ¶¹ÊÓƵ AEM Analytics HTTP Client.
-
To add the URL for a data center, press the + button next to the Data Center URLs list, and type the URL in the box.
-
To remove a URL from the list, click the - button next to the URL.
-
Click Save.
Configuring the Connection to ÃÛ¶¹ÊÓƵ Analytics configuring-the-connection-to-adobe-analytics
Configuring for the Activity Map configuring-for-the-activity-map
Creating an ÃÛ¶¹ÊÓƵ Analytics Framework creating-a-adobe-analytics-framework
For the Report Suite ID (RSID) that you are using, you can control which server instances (author, publish, or both) contribute data to the Report Suite:
- All: Information from both the author and the publish instance populates the Report Suite.
- Author: Only information from the author instance populates the Report Suite.
- Publish: Only information from the publish instance populates the Report Suite.
-
Using Navigation, select Tools, Cloud Services, then Legacy Cloud Services.
-
Scroll to ÃÛ¶¹ÊÓƵ Analytics and select Show Configurations.
-
Click the [+] link next to your ÃÛ¶¹ÊÓƵ Analytics configuration.
-
In the Create Framework dialog:
- Specify a Title.
- Optionally you can specify the Name, for the node that stores the framework details in the repository.
- Select ÃÛ¶¹ÊÓƵ Analytics Framework
And click Create.
The framework opens for editing.
-
In the Report Suites section of the side pod (right side of main panel), click Add Item. Then use the drop-down to select the Report Suite ID (for example,
geometrixxauth
) with which the framework interacts.note note NOTE The content finder on the left is populated with ÃÛ¶¹ÊÓƵ Analytics variables (SiteCatalyst Variables) when you select a Report Suite ID. -
To select the server instances that you want to send information to the Report Suite, use the Run Mode drop-down (next to the Report Suite ID).
-
To make the framework available on the publish instance of your site, on the Page tab of sidekick, click Activate Framework.
Configuring Server Settings for ÃÛ¶¹ÊÓƵ Analytics configuring-server-settings-for-adobe-analytics
The framework system lets you change the server settings within each ÃÛ¶¹ÊÓƵ Analytics framework.
Start by opening the panel. Press the downward arrow next to Servers:
-
Tracking Server
-
contains the URL used to send ÃÛ¶¹ÊÓƵ Analytics calls
cname
- defaults to the ÃÛ¶¹ÊÓƵ Analytics account’s Company named1
- corresponds to the data center that the information is sent to (eitherd1
,d2
, ord3
)sc.omtrdc.net
- domain name
-
-
Secure Tracking Server
- Has the same segments as the Tracking server
- Used for sending data from secure pages (
https://
)
-
Visitor Namespace
- The namespace determines the first part of the tracking URL.
- For example, changing the namespace to CNAME causes the calls made to ÃÛ¶¹ÊÓƵ Analytics to look like CNAME.d1.omtrdc.net instead of the default.
Associating a Page with an ÃÛ¶¹ÊÓƵ Analytics Framework associating-a-page-with-a-adobe-analytics-framework
When a page is associated with an ÃÛ¶¹ÊÓƵ Analytics framework, the page sends data to ÃÛ¶¹ÊÓƵ Analytics when the page loads. Variables that the page populates are mapped and retrieved from ÃÛ¶¹ÊÓƵ Analytics variables in the framework. For example, page views are retrieved from ÃÛ¶¹ÊÓƵ Analytics.
Descendents of the page inherit the association with the framework. For example, when you associate the root page of your site with a framework, all pages of the site are associated with the framework.
-
From the Sites console, select the page you wish to set up with tracking.
-
Open the Page Properties, either directly from the console, or the page editor.
-
Open the** Cloud Services** tab.
-
Use the Add Configuration drop-down to select ÃÛ¶¹ÊÓƵ Analytics from the available options. If inheritance is place, disable that before the selector becomes available.
-
The drop-down selector for ÃÛ¶¹ÊÓƵ Analytics is appended to the options available. Select the required framework configuration.
-
Select Save & Close.
-
To activate the page and any connected configurations/files, Publish the page.
-
The final step is to visit the page on the publish instance and search for a keyword (for example, aubergine) using the Search component.
-
You can then check the calls made to ÃÛ¶¹ÊÓƵ Analytics using an appropriate tool; for example, ÃÛ¶¹ÊÓƵ Experience Cloud Debugger.
-
Using the example provided, the call should contain the value entered (that is, aubergine) in eVar7 and the events list should contain event3.
Page Views page-views
When a page is associated with an ÃÛ¶¹ÊÓƵ Analytics framework, the number of page views can be shown in the List view of the Sites console.
See Seeing Page Analytics Data for further details.
Configuring the Import Interval configuring-the-import-interval
Configure the appropriate instance of the ÃÛ¶¹ÊÓƵ AEM Analytics Report Sling Importer service:
-
Fetch attempts:
Number of attempts to fetch a queued report.
The default is6
. -
Fetch delay:
The number of milliseconds between attempts to fetch a queued report.
The default is10000
. As this is in milliseconds it corresponds to 10 seconds. -
Fetch frequency:
Acron
expression to determine the frequency for fetching the Analytics Report.
The default is0 0 0/12 * * ?
; this corresponds to 12 fetches every hour.
To configure this OSGi service, you can either use the Web Console or an osgiConfig node in the repository (the service PID is com.day.cq.analytics.sitecatalyst.impl.importer.ReportImporterScheduler
).
Editing ÃÛ¶¹ÊÓƵ Analytics Configurations and/or Frameworks editing-adobe-analytics-configurations-and-or-frameworks
As when creating an ÃÛ¶¹ÊÓƵ Analytics configuration or framework, navigate to the (legacy) Cloud Services screen. Select Show Configurations, then click the link to the specific configuration you want to update.
When editing an ÃÛ¶¹ÊÓƵ Analytics configuration, press Edit when on the configuration page itself to open the Edit Component dialog.
Deleting ÃÛ¶¹ÊÓƵ Analytics Frameworks deleting-adobe-analytics-frameworks
To delete an ÃÛ¶¹ÊÓƵ Analytics framework, first open it for editing.
Then select Delete Framework from the Page tab of the sidekick.