BuyerGenomics’ Universal Touch System tracks consumer behavior in real time. This data can be used to predict what each individual is most likely to do next, and autonomously send messages designed to achieve desired conversions.
Understanding and acting upon this data in real time plays a huge role in many marketing tactics, including window shopping (a powerful AutoPilot action), rescuing abandoned carts, determining customer value, and tracking shifts along the Buyer Lifecycle.
Separate code is provided to track each of the following:
PageView Tracking - To be installed on every page of your site to track the visitor across pages. This tracks which page a visitor is on, device type, source, timestamp, and browsing duration.
Product and Category PageView Tracking - To be installed on every product and category page of your site. This is used to track the product and product category viewed by the visitor.
User Tracking - Used to identify visitor information (i.e., PII or Personally Identifiable Information). Can record first name, last name, email address, street address, etc. Such data will be tracked only if some PII is provided. Used in conjunction with PageView Tracking
eCommerce Cart Tracking - Code to track visitor cart content, such as product SKU number, product name, product category, price, quantity, and other attributes, such as color and size.
eCommerce Transaction Tracking - Tracks transaction information such as total amount paid, shipping paid, tax paid, and discount amount. Used in conjunction with eCommerce Cart Tracking.
You will need two different credentials:
Developer Brand ID and API Key
Production Brand ID and API Key
You will need your Developer Brand ID and API key in order to test your implementation. These will send data to your staging BuyerGenomics account. Contact your account manager to get your staging account.
When you are ready to move your implementation to production, use your production Brand ID and API key to send data directly to your live BuyerGenomics account. Only implement the ID and key after your implementation has been sufficiently tested and QA’d.
PageView tracking is used to track what page a visitor views, when they view it, how they get there, and what they use to view it.
Basic PageView Tracking is required on all pages of your site and automatically records information like page, source, device, browser, language, timestamp, and browsing duration.
Add the following code to the head of each HTML page, just before </head> tag:
Add the following code to the body of the page, just before </body> tag:
Product and Category Tracking
Product and Category Tracking is used to record specific products and categories viewed by the visitor, in addition to the details collected by PageView Tracking.
Add the following code before “BGBot.TrackView()” to track additional product and category information:
BGBot.SetViewDetails("CATEGORY NAME","PRODUCT NAME");
If you know who your customer is or have any additional personally identifiable information, track it by adding the following code before “BGBot.TrackView()”:
//create new customer
Note: For the data field that you do not have, pass an empty string (e.g., “ “).
eCommerce Cart Tracking
Add the following code after “BGBot.TrackView()” on the page that displays the cart to track which products added to the cart:
//add new item
eCommerce Transaction Tracking
Replace “BGBot.TrackView()” line with the following code on the Order Confirmation Page (e.g., your “Thank You” page):
Insert User Tracking code
Insert eCommerce Cart Tracking code (without “BGBot.TrackCart(true);”)
Insert the following code:
//TOTAL_AMOUNT= total amount the user paid, typically sum of (item price * qty) + SHIPPING_AMOUNT + TAX_AMOUNT
Use these examples to ensure that the format, syntax, and placement of your implementation is correct and follows best practice.
Category Listing Page
Order Confirmation Page