Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
extend
extend
3. Extending or Overriding pushed data

If you want It is possible to push different data you can include this data by adding fields to the JSON field groups

SiteTrackerUserData-append (or SiteTrackerUserData_RoleName-append for role specific changes

  • PrimaryTable Name = User
  • You can also retrieve data from the users Role or Customer

SiteTrackerProductData-append (or SiteTrackerProductData_RoleName-append for role specific changes

  • PrimaryTable Name = Product

SiteTrackerOrderData-append (or SiteTrackerOrderData_RoleName-append for role specific changes

  • Primary Table Name = ProntoSalesOrder
  • You can also retrieve field data from ProntoSalesOrderLine and Product

Optionsadditional data or to override Commerce Vision's out-of-the-box inclusions. 

  1. First, determine the type of data you wish to push:
    • User
    • Product
    • Order
  2. Identify the field name for the new data you require. This can be found in the relevant Dictionary table.
    1. In the CMS, navigate to Settings --> Dictionary.
    2. Enter the table in the 'TableName' field and click 'Define'.
    3. Locate the required data field in the list.

      Tip

      For very large tables such as 'Customer', the Search function may be handy. With the table defined, enter a keyword in the 'Search For' box, select the 'Contains' option, and click 'Search' (not Enter key).

  3. Next, include the new data by adding the field to the relevant JSON field group. 

    Data TypeDictionary TableJSON Field Group
    User

    Primary Table:

    • User

    Additional Tables:

    • Role
    • Customer
    SiteTrackerUserData-append (or SiteTrackerUserData_RoleName-append for role-specific changes)
    ProductProductSiteTrackerProductData-append (or SiteTrackerProductData_RoleName-append for role-specific changes)
    Order

    Primary Table:

    • ProntoSalesOrder

    Additional Tables:

    • ProntoSalesOrderLine
    • Product
    SiteTrackerOrderData-append (or SiteTrackerOrderData_RoleName-append for role-specific changes)
  4. Finally, construct the tracking code using the format below. 

    Code Block
    titleSample Data Extension code
    $.cv.css.tracker.track("userDetail", "extend", function(data) {
    	return { EmailAddress: data.EmailAddress };
    });

Insert diagram/screenshot here & clarify with AT. 

  1. First param is the data to manipulate
  2. Second param is the type of manipulation
    1. extend
    2. override
  3. The third param is the function that will perform the manipulation
    1. The data is the raw data that can be used for manipulation (and includes the additional data from the JSON field groups described above)
    2. return an object with the properties and data to use

...

  • userDetail
  • pageType (this is for Digital Remarketing)
  • productImpressions

  • productClick
  • questionnaire

  • checkout

  • checkoutOption

  • transactionProducts

  • loginSuccess

  • logoutSuccess

  • addToCart

  • removeFromCart

  • promoCodes

  • viewOrder

  • viewTemplate

...

 

Info

Content by Label
showLabelsfalse
max5
spacesKB
sortmodified
showSpacefalse
reversetrue
typepage
labelskb-how-to-article