TagSpy

view_promotion

Recommended

This event signifies a promotion was viewed from a list.

Platforms
web, app
When it fires
You send it when the action happens.
Official docs

Parameters (6)

ParameterTypeRequiredDescriptionExample
creative_namestringNoThe name of the promotional creative. Ignored if set at the item-level.summer_banner2
creative_slotstringNoThe name of the promotional creative slot associated with the event. Ignored if set at the item-level.featured_app_1
promotion_idstringNoThe ID of the promotion associated with the event. Ignored if set at the item-level.P_12345
promotion_namestringNoThe name of the promotion associated with the event. Ignored if set at the item-level.Summer Sale
location_idstringNoLocation associated with the promotion; Google Place ID is recommended when applicable.ChIJIQBpAG2ahYAR_6128GcTUEo
itemsArray<Item>Yes*The items for the event. * The items array is expected to have a single element, representing the item associated with the promotion. If multiple elements are provided, only the first element in items will be used.-

Example

gtag.js
gtag('event', 'view_promotion', {
  items: [{ item_id: 'SKU_12345', item_name: 'Stan and Friends Tee', price: 9.99, quantity: 1 }],
  creative_name: 'summer_banner2',
  creative_slot: 'featured_app_1',
  promotion_id: 'P_12345',
  promotion_name: 'Summer Sale',
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'view_promotion',
  items: [{ item_id: 'SKU_12345', item_name: 'Stan and Friends Tee', price: 9.99, quantity: 1 }],
  creative_name: 'summer_banner2',
  creative_slot: 'featured_app_1',
  promotion_id: 'P_12345',
  promotion_name: 'Summer Sale',
});

Also see