select_content
RecommendedUse this event when a user selects content on a website or app. content_id is the current prescribed identifier for the selected content.
- Platforms
- web, app
- When it fires
- You send it when the action happens.
Parameters (2)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| content_type | string | No | The type of selected content. | product |
| content_id | string | No | An identifier for the selected content; include at least one non-numeric character. | C_12345 |
Example
gtag.js
gtag('event', 'select_content', {
content_type: 'product',
content_id: 'C_12345',
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'select_content',
content_type: 'product',
content_id: 'C_12345',
});