Support Blendee.com Support Blendee.com

  • Manuals And Support
    • Getting Started
    • Manuals And Support
    • Templates
  • Video Tutorial
  • Faq
  • Blog
  • English
    • Italiano
Home / Getting Started, Install Blendee / Tracking Codes

Tracking Codes

408 views 2 min , 27 sec read 0

The exchange of information between the customer’s e-commerce site and the Blendee platform takes place through non-blocking asynchronous tracking scripts to be installed on the e-commerce site itself.

In order for this exchange to take place correctly, the following script must be inserted on each page of the website (preferably in the head section):

 

Values written in italics in curly brackets are placeholders to be set as follows (values entered must produce valid javascript code):

tracking-script

Each different type of event to be tracked has specific parameters and above all must be used in the right context, to ensure that the data that reaches Blendee is usable effectively for the customer.

If an event has no parameters, you can specify parameter 0 or specify no parameter after the event name. For example, the two javascript statements are equivalent:

_sbnaq.push(["trkPageView", 0]) 
_sbnaq.push(["trkPageView"])

Events to be traced can also be provided via Javascript direct call by invoking the event name on the Sbntrk object. For example, see the following code:

if (Sbntrk) {
Sbntrk.trkProductSale(
'GRP005', '2', '', '50.00', '60.00', '5.00', 'EUR', 0, 1, '2015-10-12T10:20:20'
); }

However, this code is equivalent to the following, which is always usable:

_sbnaq.push(["trkProductSale",'GRP005','2','','50.00','60.00','5.00','EUR ',0,1,'2015-10-12T10:20:20']);

The following is the list of events that can be used (the order of the parameters must be respected):

Event NameContextParametersParameter description
trkPageViewGeneric event to track the view of a page––
trkCategoryViewEvent to be included in the page dedicated to a product categorycategoryIdIdentifier of the current Category (must match the data provided on CSV flows).
trkProductViewAn event to be provided on a product detail page.productId [, categoryId, brand]Identifier of the displayed product (must match the data provided on CSV flows). Optional: categoryId: product categorybrand: brand name of the product
trkProductBasketAddAn event to be provided when the user adds a product to their cart. ProductidIdentifier of the product added to the cart (must match the data provided on the CSV flows).
[cartId]Identifier of the current cart. Optional.
trkProductBasketRemoveAn event to be provided when the user removes a product from their cart.ProductidThe identifier of the product removed from the cart (must match the data provided on the CSV flows).
[cartId]Identifier of the current cart. Optional.
trkProductSaleEvent to be provided when the user places a purchase order for one or more productsgroupNumberAlphanumeric identifier of the order placed. This data is the element that groups together several products purchased at the same time.
ProductidIdentifier of the product added to the cart (must match the data provided on the CSV flows).
quantityPurchased quantity (integer value greater than or equal to 1).
couponCode of any coupon used by the user. In the case of multiple products in the same order, it can only be supplied once.
PriceAmount of the product purchased, without VAT or equivalent taxes.
priceWithTaxAmount of the product with VAT or equivalent taxes.
deliveryPriceShipping costs. In the case of multiple products in the same order, it can only be supplied once.
currencyCurrency (ISO 4217 (http://it.wikipedia.org/wiki/ISO_4217) standard).
TsTimestamp of the purchase in the format YYYY-MM-DDTHH:mm:SS
ExpirationExpiration date of the purchased item. Optional. If provided, it must have the format YYYY-MM-DD
trkProductsSaleAlternative event to trkProductSale that allows you to record the purchase of multiple products in a single callproductsArrayArrays of objects containing the fields used in the trkProductSale call. ES:

[[‘GRP005’, ‘2’, ‘1’, ”, ‘50.00’, ‘60.00’, ‘5.00’, ‘EUR’, ‘2015-10-12T10:20:20’], [‘GRP005’, ‘4’, ‘2’, ”, ‘30.00’, ‘60.00’, ‘0.00’, ‘EUR’, ‘2015-10-12T10:20:20’]]
trkProductLocalSearchSearch the customer’s site by a userKwKeyword used by the user.
trkUserRegistrationRegistering a new useruserIdIdentifier of the user registered on the site. This value must match the value provided on the users’ CSV flow.
[email]Email address of the user who is registering. Optional.
trkNewsletterSubscriptionNewsletter registration of a new user[Email]*string, required field,
[Nome]string, field NOT required
[Cognome]string, field NOT required
[f_ricevi_newsletter]*Boleano, required field
[f_ricevi_comunicazioni_commerciali]*Boleano, required field
[Lista_email]string, NOT mandatory field, Email List Code, to be valued if you want to subscribe a user to an email list
[double_optin]boleano, mandatory field, to always be set to 1 to ensure the sending of the double optin
trkNewsletterUnsubscribeUnsubscribe a user from the newsletter[email]*String, required field.

Was this content useful?

Thanks for contributing!

Yes No
javascriptsetup Getting StartedInstall Blendee

Related Articles

  • How to view your website when personalizing messages.
  • Login and Access to the Control Panel
  • How to show or hide the side menu
  • App Center

Search

Categories

  • 4A/B/XTesting
  • 5Account
  • 2AdServer: Reporting
  • 5AdServer: The Key Entities
  • 4Analytics
  • 3App Center
  • 2Audience Activation
  • 3Audience Platform Analytics
  • 10Audience Target
  • 5Audience Tracking Tag
  • 11Basic Settings
  • 7Buyer Personas
  • 11Campaigns Manager
  • 3Contents
  • 15Curated Audience
  • 10Dashboard
  • 1Direct Activation
  • 13E-mail Editor
  • 37E-mail Marketing
  • 9Experience Manager
  • 17Filters
  • 23Getting Started
  • 2Google AdWords
  • 3Media Gallery
  • 4Other Channels: Facebook Lead Ads
  • 2Other channels: Push Notifications
  • 3Other channels: Widget E-mail
  • 1Panel Research
  • 1Personalyzing your website
  • 14Segments
  • 1SMS Marketing
  • 24Template
  • 33Trigger
  • 1User Data Import
  • 27Users
  • 60video tutorial eng
  • 18Web Site: Behavioral Messages
  • 12Web Site: Forms
  • 13Web Site: Product Recommendations
  • 1Web Site: Smart Search

The most popular

  • Types of Product Recommendations – Glossary
  • Setting up filters
  • Introduction to behavioural messages
  • Configure a trigger
  • Introduction to Recommendations
© 2025 BLENDEE S.r.l. - Via Museo Biscari, 16 Catania (CT) 95131
Blendee Marketing Operating System | P. iva 06016140870
Privacy Policy - Cookies Policy