This article describes how to set up the Snap Pixel tag in your Tealium iQ Tag Management (TiQ) account.

In this article:

Table of Contents Placeholder

Tag Tips

  • Conversion fires when Order ID is set.
  • Supports the following E-Commerce extension parameters:
    • Order ID (_corder)
    • Sub Total (_csubtotal)
    • Currency (_ccurrency)
    • Customer ID (_ccustid)
    • List of Product IDs (_cprod)
    • List of Categories (_ccat)
    • List of Quantities (_cquan)
    • List of Prices (_cprice)
  • User Email and Phone Number will be converted to SHA256 within the Snap Pixel SDK before being passed to Snap's server.

Tag Configuration

First, go to Tealium's tag marketplace and add the Snap Pixel tag (Learn more about how to add a tag).

After adding the tag, configure the following settings:

  • Pixel ID
    Found in your Snapchat Ads Manager.

Data Mappings

Mapping is the process of sending data from a data layer variable to the corresponding destination variable of the vendor tag. For instructions on how to map a variable to a tag destination, see Data Mappings.

The available categories are:

Standard

Variable Description
User Email
  • Email address of the currently signed in user.
  • Example:
    snaptr('init', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',{user_email':user.email});
User Phone Number
  • Phone number of the currently signed in user.
  • Only digits with country code, are code, and number.
  • Not other formatting characters, such as 1+815-483-4610.
  • Example:
    snaptr('init', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',{user_phone_number:user.phone_number});
User Hashed Email
  • Hashed email address of the currently signed in users.
  • SHA256 hash of lower-cased email address with white space removed.
  • Example:
    snaptr('init', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',{user_hashed_email:user.sha256_email});
User Hashed Phone Number
  • Hashed phone number of the currently signed in user.
  • SHA256 hash of lower-cased phone number with white space removed.
  • Example:
    snaptr('init', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',{user_hashed_phone_number:user.sha256_phone_number});
Description description
Search String search_string
Payment Info Available payment_info_available
Sign Up Method sign_up_method
Success success

E-Commerce

Variable Description
order_id
  • Order ID
  • Overrides _corder
order_subtotal
  • Subtotal
  • Overrides _csubtotal
order_currency
  • Currency
  • Overrides _ccurrency
customer_id
  • Customer ID
  • Overrides _ccustid
product_id
  • Array
  • List of Product IDs
  • Overrides _cprod
product_category
  • Array
  • List of Categories
  • Overrides _ccat
product_unit_price
  • Array
  • List of Prices
  • Overrides _cprice
product_quantity
  • Array
  • List of Quantities
  • Overrides _cquan

Events

Variable Description
PURCHASE Purchase
SAVE Save
START_CHECKOUT Start checkout
ADD_CART Add cart
VIEW_CONTENT View content
ADD_BILLING Add billing
SIGN_UP Sign up
SEARCH Search
PAGE_VIEW Page View