Versions Compared

Key

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

...

It is possible to push additional data or to override Commerce Vision's out-of-the-box inclusions. For assistance with this, please contact a Commerce Vision Consultant. 

 

 

Info
titleHomeless content

Do we want to include the below info anywhere?

CV Use only section of

...

this doc?

...

Or just leave as part of Aidan's Confluence doc?


  1. Determine the type of additional data required to push:
    • User
    • Product
    • Order
  2. 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)
  3. 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 };
    });

...

  • First param is the data to manipulate (e.g. "userDetail" in sample code above)
  • Second param is the type of manipulation:
    • extend
    • override
  • The third param is the function that will perform the manipulation (e.g. "EmailAddress: data.EmailAddress" in sample code above)
    • The data is the raw data that can be used for manipulation (and includes the additional data from the JSON field groups described above)
    • return an object with the properties and data to use

 

Extension methods

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

  • productClick
  • questionnaire

  • checkout

  • checkoutOption

  • transactionProducts

  • loginSuccess

  • logoutSuccess

  • addToCart

  • removeFromCart

  • promoCodes

  • viewOrder

  • viewTemplate

 

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