JavaScript Implementation Guide of Adobe SiteCatalyst Omniture

This section describes the process of implementing Adobe SiteCatalyst Omniture Tracking.

Before Implementation

Before you implement the Visitor ID service, your company must be provisioned for the Marketing Cloud. You’ll receive a Marketing Cloud Organization ID that must be provided during Visitor ID service initialisation. See Getting Started with Adobe Marketing Cloud. Also, to successfully implement a page with code to collect data, you must have access to your hosting servers to include JavaSctipt tracking code and upload new content to your website.


Implementation Steps

The following steps walk you through a basic Analytics implementation.

Step 1 Download Adobe JavaScript code

Adobe JavaScript code is zipped as AppMeasurement_JavaScript-1.5.2.zip (current version is 1.5.2) under Marketing Cloud Client Libraries from Adobe Marketing Cloud Code Manager. It contains below files, for now we are concerned only with AppMeasurement.js and VisitorAPI.js

Step 2 Configure the Visitor ID service

In VisitorAPI.js, add the following visitor ID initialization code at the beginning of the file:

  • INSERT-MCORG-ID-HERE – (Required) This Adobe Marketing Cloud Organization ID is sent to your administrator when your company is provisioned for the Adobe Marketing Cloud.
  • INSERT-TRACKING-SERVER-HERE – (Required) Your Analytics tracking server.
  • INSERT-SECURE-TRACKING-SERVER-HERE – (Required if ssl is enabled) Your Analytics secure tracking server.

Step 3 Configure SiteCatalyst AppMeasurement.js

Add the following AppMeasurement.js global configuration code at the beginning of your AppMeasurement.js file:

Complete sample code in “Sample Global Configuration Code for Adobe SiteCatalyst AppMeasurement.js

Step 4 Host AppMeasurement.js and VisitorAPI.js

These core JavaScript files must be hosted on a web server that is accessible to all pages on your site. You need the path to these files in the next step.

Step 5 Reference AppMeasurement.js and VisitorAPI.js on all site pages

Include the Visitor ID Service and AppMeasurement.js by adding the following line of code in the head or body tag on each page.

Note: VisitorAPI.js must be included before AppMeasurement.js:

Step 6 Add your custom tracking code

The custom tracking code should be place just after the opening body tag on each page you want to track, more details see “Sample Page Code for Adobe SiteCatalyst AppMeasurement.js

Step 7 Testing and Validation

The last step is to verify the data is being sent or not after javascript tracking code installed using The Adobe Debugger (previously DigitalPulse Debugger) which is provided by Adobe that lets you view the data being collected from your site on any given page.

To install, copy the provided JavaScript code to your clipboard and then create a bookmarklet in a supported browser.

After installed, click the bookmark or bookmarklet from your browser to launch the Adobe Debugger in a new window.

Adobe_Debugger

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA