JavaScript Implementation Guide of Adobe SiteCatalyst Omniture

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

1

2

3

4

5

6

7

8

AppMeasurement_Module_AudienceManagement.js

AppMeasurement_Module_Integrate.js

AppMeasurement_Module_Media.js

AppMeasurement.js

help.html

releasenotes.html

version

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:

1

2

3

4

varvisitor=Visitor.getInstance("INSERT-MCORG-ID-HERE");

visitor.trackingServer="INSERT-TRACKING-SERVER-HERE";// same as s.trackingServer

visitor.trackingServerSecure="INSERT-SECURE-TRACKING-SERVER-HERE";//same as s.trackingServerSecure

/* ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! ============ */

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.

Step 6 Add your custom tracking code

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.