campaign_details
RecommendedLog this event to supply the referral details of a re-engagement campaign.
- Platforms
- web, app
- When it fires
- You send it when the action happens.
Parameters (11)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| source | string | yes | The origin of your traffic, such as an Ad network (for example, google) or partner (urban airship). | - |
| medium | string | yes | The advertising or marParameter(keting, cpc, banner, email), push. | - |
| campaign | string | yes | The individual campaign name, slogan, promo code, etc. | - |
| term | string | no | Term; used with paid search to supply the keywords for ads. | - |
| content | string | no | Content; used for A/B testing and content-targeted ads to differentiate ads or links that point to the same URL. | - |
| aclid | string | no | Ad Network Click ID | - |
| cp1 | string | no | Custom parameter | - |
| campaign_id | string | no | Campaign ID | - |
| campaign_info_source | string | no | Source Platform | - |
| creative_format | string | no | Creative format | - |
| marketing_tactic | string | no | Marketing tactic | - |
Example
gtag.js
gtag('event', 'campaign_details', {
source: '...',
medium: '...',
campaign: '...',
term: '...',
content: '...',
aclid: '...',
cp1: '...',
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'campaign_details',
source: '...',
medium: '...',
campaign: '...',
term: '...',
content: '...',
aclid: '...',
cp1: '...',
});