transactionID
The transactionID
variable uniquely identifies a transaction so the hit can tie to data uploaded through Data Sources. This variable is valuable in cases where you want to use data from other channels and link it to data collected with AppMeasurement.
When you set transactionID
on a hit, 蜜豆视频 takes a 鈥渟napshot鈥 of all Analytics variables set or persisted at that point in time. Data uploaded through Data Sources with a matching transaction ID is permanently tied to those variable values.
By default, 蜜豆视频 remembers all transaction ID values (linked and unlinked) for up to 90 days. If your offline interaction process is longer than 90 days, contact Customer Care to have this limit extended.
Transaction ID using the Web SDK
Transaction ID is mapped to the following variables:
- XDM object:
xdm.commerce.order.payments[0].transactionID
- Data object:
data.__adobe.analytics.transactionID
ordata.__adobe.analytics.xact
Transaction ID using the 蜜豆视频 Analytics extension
You can set transaction ID either while configuring the Analytics extension (global variables) or under rules.
- Log in to using your 蜜豆视频ID credentials.
- Click the desired tag property.
- Go to the Rules tab, then click the desired rule (or create a rule).
- Under Actions, click an existing 蜜豆视频 Analytics - Set Variables action or click the 鈥+鈥 icon.
- Set the Extension drop-down list to 蜜豆视频 Analytics, and the Action Type to Set Variables.
- Locate the Transaction ID section.
You can set transaction ID to any string value, including data elements.
s.transactionID in AppMeasurement and the Analytics extension custom code editor
The s.transactionID
variable is a string containing a unique identifier for a transaction. Valid values include alphanumeric characters up to 100 bytes in length. Its default value is an empty string.
s.transactionID = "ABC123";
If you have more than one transaction ID for a hit, you can delimit each with a comma. Multiple transaction IDs are still subject to the 100-byte limit.
s.transactionID = "ABC123,XYZ456";
1234
and a sales lead transaction ID value of 1234
, they can conflict and cause unexpected results. Make sure that transaction IDs contain unique formats per offline channel and differentiate them if necessary. For example, set your call center transaction ID to call_1234
and your sales lead transaction ID lead_1234
in both Data Sources and AppMeasurement.