Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
OmniExtTrackingDef
File Suffix and Directory Location
OmniExtTrackingDef components have the suffix .OmniExtTrackingDef and are stored in the OmniExtTrackingDefs folder.
Version
OmniExtTrackingDef components are available in API version 60.0 and later.
Special Access Rules
Using OmniAnalytics requires having an Omnistudio license and enabling OmniAnalytics in Setup.
Fields
| Field Name | Description |
|---|---|
| description |
|
| developerName |
|
| isActive |
|
| masterLabel |
|
| omniExtTrackingDefKey |
|
| omniExtTrackingEventDefs |
|
| trackingFrameworkInformation |
|
| trackingServiceProvider |
|
OmniExtTrackingEventDef
Represents a format for FlexCard or OmniScript user interaction data that a third-party Analytics system such as Google Analytics can accept.
| Field Name | Description |
|---|---|
| componentType |
|
| description |
|
| developerName |
|
| inclusionRule |
|
| masterLabel |
|
| omniExtTrackingDef |
|
| omniExtTrackingEventDefKey |
|
| payloadTemplate |
|
Declarative Metadata Sample Definition
The following is an example of an OmniExtTrackingDef component.
1<?xml version="1.0" encoding="UTF-8"?>
2<OmniExtTrackingDef xmlns="http://soap.sforce.com/2006/04/metadata">
3 <developerName>Purchase_Tracking_Google</developerName>
4 <isActive>true</isActive>
5 <masterLabel>Purchase_Tracking_Google</masterLabel>
6 <trackingFrameworkInformation>{ "id": "GTM-XXXXXXX" }</trackingFrameworkInformation>
7 <trackingServiceProvider>Google</trackingServiceProvider>
8 <omniExtTrackingEventDefs>
9 <componentType>Omniscript</componentType>
10 <developerName>Purchase_Funnel_Google</developerName>
11 <inclusionRule></inclusionRule>
12 <masterLabel>Purchase_Funnel_Google</masterLabel>
13 <payloadTemplate>
14{
15 "event": "promotionClick",
16 "ecommerce": {
17 "promoClick": {
18 "promotions": [
19 {
20 "name": "%BusinessEvent%"
21 }
22 ]
23 }
24 }
25}
26 </payloadTemplate>
27 </omniExtTrackingEventDefs>
28</OmniExtTrackingDef>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>OmniExtTrackingDef</name>
6 </types>
7 <version>60.0</version>
8</Package>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.