Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Adobe Analytics Best Practices


This page contains best practices and tips for setting up and testing Adobe Analytics with Segment.


Validating by Data by Component

validating-by-data-by-component page anchor

The following list contains tools you can use to validate data coming from Segment and going to each different Adobe Analytics component


Reducing API calls by sending events on page or screen

reducing-api-calls-by-sending-events-on-page-or-screen page anchor

You might want to associate Adobe <events> with Segment page or screen events to reduce the number of API calls Segment sends to Adobe Analytics.

For example, instead of sending the Product Viewed event as a track to AA, you can trigger a Segment page call with an integrations.Adobe Analytics.events passed in, with an array of the Adobe events to send:

1
"integrations": {
2
"Adobe Analytics": {
3
"events": ["event35", "scAdd"]
4
}
5
}

When the integration option events is passed in, Segment maps the events and sends them using the <events> tag. In the example above, the output would be <events>event35, scAdd</events>.

Considerations

  • Segment does not automatically map to Adobe Pre-Defined events on page or screen calls
  • You must change your implementation to pass integration: AA: false on the event you do not want duplicated.
1
"integrations": {
2
"Adobe Analytics": false
3
}

Setting custom linkTypes, linkNames and linkUrls

setting-custom-linktypes-linknames-and-linkurls page anchor

If you are setting up the Adobe Analytics destination in cloud-mode, you can pass in custom linkTypes, linkNames and linkURLs.

Note: If you pass in the visitorId in a destination-specific integration object in your Segment Page or Track events, the visitorId passed persists on Page or Track calls that occur after an Identify call. This effectively supersedes the visitorId variable Segment would set to your userId after an Identify call.

We know this is daunting territory, so don't hesitate to contact us directly for guidance(link takes you to an external page).

Setting the event linkType

setting-the-event-linktype page anchor

By default, Segment's integration with Adobe Analytics automatically sets an events linkType as a custom link o for 'other' within the s.tl() call. To set the linkType of an event as download or exit link, you can pass in a different value in the integrations.adobe analytics object of your Segment event payload.

A value of d or D maps to "download" links, and a value of e or E maps to "exit" links

The example below shows of how you would set a Segment event as a download link type:

1
"integrations": {
2
"Adobe Analytics": {
3
"linkType": "d"
4
}
5
}

If you pass in Segment events with a download (d or D) linkType, they appear the Download link report in your Adobe Analytics reporting suite. If you pass in Segment events with an "exit" (e or E) linkType, they appear in the Exit link report in your Adobe Analytics reporting suite. Finally, if you pass in Segment events with a value of o or O, or no linkType in the integration.Adobe Analytics object, they appear in the custom link report in your Adobe Analytics reporting suite.

Setting the event linkName

setting-the-event-linkname page anchor

To pass in a custom LinkName to Adobe Analytics, pass it as a string in the integrations.Adobe Analytics object of your Segment event. The example below sets the custom linkname to "Click me".

1
"integrations": {
2
"Adobe Analytics": {
3
"linkName": "Click me"
4
}
5
}

If you don't specify a custom linkName in the integration specific object in the payload, Segment defaults to mapping linkName to the value from (context.page.url). If no URL is present, Segment sets linkName to No linkName provided. If you enable the useLegacyLinkName setting in the UI, Segment prepends Link Name - to the value you specified in the integration-specific object.

Setting the event LinkURL

setting-the-event-linkurl page anchor

To pass a custom LinkUrl to Adobe Analytics, pass it as a string in the integrations.Adobe Analytics object of your Segment event. The example below sets the custom linkURLs to "example.com/example".

1
"integrations": {
2
"Adobe Analytics": {
3
"linkUrl": "example.com/example"
4
}
5
}

If you don't specify a custom linkUrl in the integration specific object in the payload, Segment defaults to mapping linkUrl to the (context.page.url). If no is URL present, Segment sets linkUrl to No linkUrl provided.