Initialization
We initialize appmeasurement.js
or mediaSDK.js
according to the settings in the RudderStack dashboard.
RudderStack first checks if any global properties are set in window.s_account
or window.s objects
. If already present, they will be used. Otherwise, RudderStack uses the Report Suite IDs, Tracking Server URL, and Tracking Server Secure URL (optional) as set in the RudderStack dashboard.
If Marketing Cloud Organization ID is set in the dashboard, RudderStack initializes visitorApi.js
and sets the ID in window.Visitor.getInstance(<Your Marketing Cloud Org Id>)
.
Page
RudderStack sends a page view event to Adobe Analytics whenever you make a page()
call.
A sample page
call is as shown:
// Passing page category, name and propertiesrudderanalytics.page("category", "name", { path: "path", url: "url", title: "title", search: "search", referrer: "referrer",})
If this call is made the pageName
of the window.s
variable will be set as Viewed Page name. RudderStack also sends other information like referrer
,url
, etc.
page
call. The t()
method is called to compile all the variables set and send them to Adobe Analytics.Track
According to the mapping done in RudderStack, the events can be sent as particular Adobe Events.
The track
events for Adobe can be broadly categorized in 3 types:
- Normal track events
- Ecommerce track events
- Video type (Heartbeat) track events
track
events, it is necessary to map the events in the RudderStack dashboard.For ecommerce track events, if the events fall under the following mapping they will be sent accordingly. Otherwise, the mapping should be done in the dashboard.
The mapping is as shown:
Rudder ecommerce event | Adobe event |
---|---|
product viewed | prodView |
product list viewed | prodView |
product added | scAdd |
product removed | scRemove |
order completed | purchase |
cart viewed | scView |
checkout started | scCheckout |
cart opened | scOpen |
opened cart | scOpen |
A sample track
call is as shown:
rudderanalytics.track("Track me", { category: "category", label: "label", value: "value",})
Contact us
For more information on the topics covered on this page, email us or start a conversation in our Slack community.