select_promotion
RecommendedThis event signifies a promotion was selected from a list.
- Platforms
- web, app
- When it fires
- You send it when the action happens.
Parameters (6)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| creative_name | string | No | The name of the promotional creative. Ignored if set at the item-level. | summer_banner2 |
| creative_slot | string | No | The name of the promotional creative slot associated with the event. Ignored if set at the item-level. | featured_app_1 |
| promotion_id | string | No | The ID of the promotion associated with the event. Ignored if set at the item-level. | P_12345 |
| promotion_name | string | No | The name of the promotion associated with the event. Ignored if set at the item-level. | Summer Sale |
| location_id | string | No | Location associated with the promotion; Google Place ID is recommended when applicable. | ChIJIQBpAG2ahYAR_6128GcTUEo |
| items | Array<Item> | No | The items for the event. | - |
Example
gtag.js
gtag('event', 'select_promotion', {
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: 'select_promotion',
creative_name: 'summer_banner2',
creative_slot: 'featured_app_1',
promotion_id: 'P_12345',
promotion_name: 'Summer Sale',
});