...
- Determine the type of additional data required to push:
- User
- Product
- Order
Include the new data by adding the field to the relevant JSON field group.
Data Type Dictionary Table JSON Field Group User Primary Table:
- User
Additional Tables:
- Role
- Customer
SiteTrackerUserData-append (or SiteTrackerUserData_RoleName-append for for role-specific changes) Product Product SiteTrackerProductData-append (or SiteTrackerProductData_RoleName-append for for role-specific changes) Order Primary Table:
- ProntoSalesOrder
Additional Tables:
- ProntoSalesOrderLine
- Product
SiteTrackerOrderData-append(or SiteTrackerOrderData_RoleName-append for for role-specific changes) Finally, construct the tracking code per the format below.
- First parameter is the data to manipulate (e.g. "userDetail" in sample code)
- Second parameter is the type of manipulation:
- extend
- override
- The third parameter is the function that will perform the manipulation (e.g. "EmailAddress: data.EmailAddress" in sample code)
- The data is the raw data that can be used for manipulation (and includes the additional data from the JSON field groups described above)
Code Block title Sample Data Extension code $.cv.css.tracker.track("userDetail", "extend", function(data) { return { EmailAddress: data.EmailAddress }; });
...