firebase_campaign
AutomaticappAutomatically triggered when the app is launched with campaign parameters This event does not appear in reports and is not exported to BigQuery.
- Platforms
- app
- When it fires
- Collected automatically; no code needed.
Parameters (11)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| source | - | - | The origin of your traffic, such as an Ad network (for example, google) or partner (urban airship). | - |
| medium | - | - | The advertising or marParameter(keting, cpc, banner, email), push. | - |
| campaign | - | - | The individual campaign name, slogan, promo code, etc. | - |
| term | - | - | Term; used with paid search to supply the keywords for ads. | - |
| content | - | - | Content; used for A/B testing and content-targeted ads to differentiate ads or links that point to the same URL. | - |
| gclid | - | - | Google Click ID | - |
| aclid | - | - | Ad Network Click ID | - |
| cp1 | - | - | Custom parameter | - |
| anid | - | - | Campaign Ad Network ID | - |
| click_timestamp | - | - | Click Timestamp | - |
| campaign_info_source | - | - | Source Platform | - |
Example
gtag.js
gtag('event', 'firebase_campaign', {
source: '...',
medium: '...',
campaign: '...',
term: '...',
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'firebase_campaign',
source: '...',
medium: '...',
campaign: '...',
term: '...',
});