Twitter Pixel Tag Setup Guide
This article describes how to set up the Twitter Pixel tag in your Tealium iQ Tag Management account.
The Twitter Pixel helps you measure your return on investment by tracking the actions users take after viewing or engaging with your ads on Twitter. Twitter’s conversion tracking lets you attribute conversions beyond last link clicked, to include actions driven by all types of ad engagements, such as link clicks, retweets, likes, and impressions.
Tag tips
- Use mappings to:
- Set up event triggers.
- Map event-specific parameters to Event Code IDs.
- Dynamically override standard config values.
- Dynamically override E-Commerce extension values.
- Supports the following E-Commerce extension parameters:
- Order ID
- Order Total
- Currency
- List of Product IDs
- List of Names
- List of Categories
- List of Quantities
Tag configuration
Navigate to the Tag Marketplace to add a new tag. Read the Tag Overview article for general instructions on how to add a tag.
When adding the tag, configure the following settings:
- Pixel ID: Also referred to as your Twitter Pixel ID. You can find it in your Twitter Pixel code snippet:
pid
in the following example:twq('config','pid');
Load rules
Load the tag on all pages or set conditions for when your tag will load. For more information about load rules, see the Load Rules documentation.
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 Parameters
Variable | Description |
---|---|
Twitter Pixel ID (pixel_code ) |
[String] |
Email Address (email_address ) |
[String] |
Phone Number (phone_number ) |
[String] |
External ID (external_id ) |
[String] |
Text that was searched for on your website (search_string ) |
[String] |
A string description for additional info (description ) |
[String] |
Twitter click ID that can be included with any request (twclid ) |
[String] |
E-Commerce
Variable | Description |
---|---|
Order Total (order_total ) (Overrides _ctotal ) |
[String] |
Currency (order_currency ) (Overrides _ccurrency ) |
[String] |
Order ID (order_id ) (Overrides _corder )```` |
[String] |
List of Categories (product_category ) (Overrides _ccat) |
[Array] |
List of SKUs (product_skus ) (Overrides _csku ) |
[Array] |
List of Names (product_names ) (Overrides _cprodname ) |
[Array] |
List of Prices (product_unit_price ) (Overrides _cprice ) |
[Array] |
List of Quantities (product_quantity ) (Overrides _cquan ) |
[Array] |
ID associated with a group of product variants (content_group_id ) |
[String] |
Event-specific Parameters
To map events, refer to [Create an Event Mapping] (/iq-tag-management/data-mappings/manage/#add-a-variable-mapping).
Variable | Description |
---|---|
Twitter Pixel ID (pixel_code ) |
pixel_code |
Email Address (email_address ) |
email_address |
Phone Number (phone_number ) |
phone_number |
External ID (external_id ) |
external_id |
Text that was searched for on your website (search_string ) |
search_string |
A string description for additional info (description ) |
description |
Twitter click ID that can be included with any request (twclid ) |
twclid |
Order Total (order_total ) (Overrides _ctotal ) |
order_total |
Currency (order_currency ) (Overrides _ccurrency ) |
order_currency |
Order ID (order_id ) (Overrides _corder ) |
order_id |
List of Categories (product_category ) (Overrides _ccat ) |
product_category |
List of SKUs (product_skus ) (Overrides _csku ) |
product_skus |
List of Names (product_names ) (Overrides _cprodname ) |
product_names |
List of Prices (product_unit_price ) (Overrides _cprice ) |
product_unit_price |
List of Quantities (product_quantity ) (Overrides _cquan ) |
product_quantity |
ID associated with a group of product variants (content_group_id ) |
content_group_id |
Custom Parameter | custom_parameter |
This page was last updated: September 12, 2022