In this video, Jason Paddock, Deployment Engineering Manager at Tealium, demonstrates how to configure the complex Adobe Analytics tag in four (4) easy steps. The example scenario uses a basic e-commerce site running on Magento.
For a full overview of this tag, see Adobe AppMeasurement for JavaScript Setup Guide for Tealium iQ Tag Management.
This article covers the following topics:
Table of Contents Placeholder
Step 1: Adding the Adobe Analytics Tag from the Tag Marketplace
Use the following steps to add the Adobe Analytics tag from the TiQ Marketplace:
- Log into TiQ.
- Click the Tags tab.
- Click + Add Tag.
- In the Search field, type
Adobe
.
- Click + Add to select the Adobe Analytics AppMeasurement for JS tag.
Step 2: Adding Vendor Information for the Tag
Use the following steps to fill out the vendor information about the tag:
- From the Tag Configuration tab, in the Report Suite field, type in or copy the value for the Report Suite.
- In the Server field, enter the server address.
- In the Server Secure field, reenter the secure server address.
- In the Internal Link Filters field, enter a comma-separated list of internal domains into the field.
- In the Namespace field, enter the visitor namespace.
- Click Next to advance to the Load Rules tab.
- Retain the default setting for Load All Pages.
- Click Next to advance to the Data Mappings tab.
Step 3: Performing Data Mappings
In this step, data in the existing data layer is sent to the Adobe tag. In additon, you will configure the system to send search results and search keyword variables to specific destination properties, which is recommended for e-commerce sites with search capabilities.
Use the following steps to perform any necessary data mappings:
- From the Data Mappings tab, in the Variables field, enter
page_name
and select this variable from the drop-down list.
- Click + Select Destination.
This step maps the page_name
field to the appropriate Adobe field.
- Select the pageName checkbox.
The variable page_name
is now mapped to the Adobe variable pageName
.
- Repeat these steps to map
search_keyword
to prop2 and search_results
to prop3.
- Click Finish.
Mapping Page Views to Events
In the next steps, you will trigger an event for when a user loads a certain type of page, such as a category page, search page, or product details page.
- In the Variables field, enter
page_type
and select it from the drop-down list.
- Click + Select Destination.
- Under Category in the left navigation pane, click Events.
The Event Triggers dialog displays in the right panel.
- In the Value field, enter
category
.
- In the Trigger field, select event1 from the drop-down list.
- Click + Add.
- Return to the Value field and repeat the steps to add
search
for event2 and product
for ProdView.
- Click Close.
Your results now display as shown in the following example.
- Click Finish.
The update Adobe Analytics tag displays as follows:
Step 4: Adding doPlugins and Plugins and Modules as Extensions
In the final step, you will use the Adobe Analytics interface to add doPlugins and add plugins as modules.
Adding doPlugins as an Extension
Use the following steps to add the doPlugins received from Adobe Analytics as an extension within TiQ:
- From the Adobe Analytics interface, click Admin > Code Manager.
The Code Manager dialog displays a list of marketing cloud client libraries.
- To download, click JavaScript (new).
The JavaScript file displays in an editor.
- Copy the entire code string starting with the following line:
s.usePlugins = true
to this line:
s.doPlugins = s_doPlugins
The example includes lines 25 through 182.
- Return to the TiQ interface.
- Click the Extensions tab.
- Click + Add Extension.
- From the Extensions dialog, click the Advanced tab.
- To the left of Javascript Code, click + Add.
- In the Title field, enter
Do Plugins
.
- In the Scope field, select Adobe Analytics AppMeasurement for JS.
- In the Configuration field, paste the code into the container text box.
Adding Plugins and Modules as an Extension
Use the following steps to add the Plugins and Modules received from Adobe Analytics as an extension within TiQ:
- From the TiQ interface, click the Extensions tab.
- Click + Add Extension.
- From the Extensions dialog, click the Advanced tab.
- To the left of Javascript Code, click + Add.
- In the Title field, enter
Plugins and Modules
.
- In the Scope field, select Adobe Analytics AppMeasurement for JS.
- Return to the JavaScript editor window.
- Copy the entire plugins section, starting with the following line:
/**************** PLUGINS SECTION ****************/
to this line:
2019: '3/10,11/3/)
The example includes lines 186 through 505.
- Return to the TiQ interface.
- In the Configuration field, paste the code into the container text box.
Modifying the Order of Extension Execution
For optimal results, use the following steps to change the order in which the extensions execute on your site:
- From the TiQ interface, click the Extensions tab.
- From the list of extensions, click, hold, and then drag and drop Plugins and Modules to display after E-Commerce and before Do Plugins.
The E-Commerce extension allows you to predefine order values and product values and is based on your data layer. Tealium tags automatically ingest the data and than map the data accordingly. For example, in Adobe Analytics, the product string will automatically be populated based on the product variables that are defined on the page.
- Click Save/Publish.
- Click Save As.
- In the Publish To field, click Dev and QA.
- Click Publish.
Testing the Changes on Your Website
Use the following steps to validate that your updates are working as intended:
- Return to your e-commerce site with the Adobe Marketing Cloud Debugger on.
- Refresh the page to ensure that the most recent version of Tealium is applied.
- From the debugger, check that props and evars are being populated to validate that the doPlugins are running.
- From your e-commerce site, click the Category page and select a category.
- Perform a search by typing a word or phrase into the search field on your site.
In the example, the category is Mens and the search word is pants.
- The debugger view reveals success by displaying the selected category, search term, and number of search returns.
- From the debugger page, click the prodView event to expand the details and confirm that the product string is populated.