Salesforce

Dynamic Ads and Pixel Implementation Best Practices

« Go Back
Information
pixel-dynamic-best
Dynamic Ads and Pixel Implementation Best Practices
Article Details

Dynamic Ads are a simple way to personalize ads for your customers. By leveraging Catalogs and the Snap Pixel, we can automate ad creation, while optimizing towards actions that matter most to your business, like driving purchases online. To run dynamic ads, you will need to upload a Product Catalog or Feed and connect your Snapchat Pixel. 

Learn how to install the Snap Pixel within your ad account.

Once the pixel is installed, we require that certain events and parameters be passed back within the pixel code to run Dynamic Ads. When set up properly, specific events combined with their corresponding item_id passback will allow us to identify when a user takes an action on your website, so that we can serve up relevant content from the catalog. 

To run Dynamic Ads, the following events must be configured in your pixel: 

Event Type

Description

Example

Requirement

PURCHASE

Track Purchases

snaptr('track','PURCHASE')

Highly   Recommended 

ADD_CART

Track add to cart events of specific items

snaptr('track','ADD_CART')

Highly Recommended

 VIEW_CONTENT 

Track content view events 

 snaptr('track','VIEW_CONTENT') 

 Required if not tracking Page_View 

PAGE_VIEW

Track webview pages

snaptr('track','PAGE_VIEW')

Required if not tracking View_Content


To match products on your website to products within your catalog, the above events also must passback item_id. Currently, we require either item_ids or item_category. 

Event Parameter

Description

Value

Example

Requirement

item_ids

International Article
Number (EAN) when applicable,
or other product category identifier

List

 
 snaptr('track','VIEW_CONTENT', 
{'item_category':Shoes',item_ids': 
['097man',16span']
});

 

Item_ids can be used for Dynamic Ad Retargeting. If using this event parameter, required on Page_View or VIew_Content. Highly recommended on Add_Cart and Purchase. Item_ids must match the id field in the catalog.

item_category

Item or category

 String 

 
snaptr('track','VIEW_CONTENT', {'item_category':Shoes',item_ids': 
['097man',16span']});

 

 Item_category can be used for Dynamic Ad Retargeting. If using this event parameter, required on Page_View or VIew_Content.
Highly recommended on Add_Cart and Purchase. Item_Category id must match the item_group_id field in the catalog.


Please follow the below best practices when setting up your pixel for Dynamic Ads: 

  1. If your pixel is not yet implemented on site, add the Dynamic Ad specific events and Parameters when installing your pixel. Learn more about how to install your pixel.

  2. If your pixel has already been installed on your site, confirm that all necessary events and parameters are configured. If they are not yet configured, you will need to go back and edit the pixel code to include the above events and parameters. Please keep the requirements in mind, however, we recommend configuring all events and item_ids or item_category passback on each, to ensure you can run the most effective Dynamic Ads campaign. 

Learn More:


Powered by