Sub topic 16
Promotion tracking: `view_promotion` and `select_promotion`
Prerequisites and tracking model
This chapter assumes you understand GA4 events, event parameters, and the items array. It also assumes you can edit a product page or a Google Tag Manager setup.
Promotion tracking measures exposure to a promotion and interaction with it:
view_promotionrecords that a promotion was displayed.select_promotionrecords that a user selected or clicked it.
A promotion can be a banner, coupon panel, featured product group, or category offer. Use the same promotion identifiers in both events so reports can connect impressions with selections.
Useful promotion parameters include:
| Parameter | Meaning | Example |
|---|---|---|
| `promotion_id` | Stable identifier for the promotion | `SUMMER_2026` |
| `promotion_name` | Human-readable promotion name | `Summer Sale` |
| `creative_name` | Name of the creative asset | `hero_blue_banner` |
| `creative_slot` | Placement where it appeared | `homepage_hero` |
Do not send value or currency merely because a promotion was viewed or selected. Revenue belongs on events such as purchase. The promotion event describes marketing interaction, not a completed sale.
flowchart TD
A[Promotion displayed] --> B[view_promotion]
B --> C[User selects promotion]
C --> D[select_promotion]
D --> E[Product or category page]
E --> F[Later purchase]Send promotion events with gtag.js
Send view_promotion when the promotion becomes visible to the user. Send it once per meaningful display, rather than on every page update. Send select_promotion from the promotion's click handler.
function trackPromotionView() {
gtag('event', 'view_promotion', {
promotion_id: 'SUMMER_2026',
promotion_name: 'Summer Sale',
creative_name: 'hero_blue_banner',
creative_slot: 'homepage_hero',
items: [
{
item_id: 'SKU_1001',
item_name: 'Trail Running Shoe',
promotion_id: 'SUMMER_2026',
promotion_name: 'Summer Sale'
}
]
});
}
function trackPromotionSelect() {
gtag('event', 'select_promotion', {
promotion_id: 'SUMMER_2026',
promotion_name: 'Summer Sale',
creative_name: 'hero_blue_banner',
creative_slot: 'homepage_hero',
items: [
{
item_id: 'SKU_1001',
item_name: 'Trail Running Shoe',
promotion_id: 'SUMMER_2026',
promotion_name: 'Summer Sale'
}
]
});
}The items array is optional when the promotion is not tied to particular products. For a product-specific promotion, include the products that the promotion presents. Keep identifiers and names consistent with your other e-commerce events.
Common errors and validation
A common error is firing view_promotion when the page loads even though the banner is below the fold. If visibility matters, trigger the event when the banner enters the viewport. Another error is sending a new random promotion_id for every display. Use a stable ID so selections can be analyzed by promotion.
Use DebugView to confirm the event name and parameters. Check that one user action creates one select_promotion event. In Realtime, verify that events arrive, but use longer date ranges and explorations for meaningful promotion comparisons.
Exercise
Which event should be sent when a user clicks a homepage sale banner, and which parameter should identify the banner consistently?
Show answer
Send select_promotion, using a stable promotion_id such as SUMMER_2026.