The Google Analytics SDK or tracking code sends campaign and traffic source data through a number of different fields. Which of the following is one of the fields used to send campaign or traffic source data?
- Campaign Medium
- Device Category
- Interest Category
The google analytics sdk or tracking code sends campaign and traffic source
Users arrive at your website or application through a variety of sources, including advertising campaigns, search engines, and social networks. This article describes how Analytics collects, processes, and reports the campaign and traffic-source data.
Understanding campaigns & traffic sources
In Analytics, the ad campaigns, search engines, social networks, and other sources that send users to your property are collectively known as campaigns and traffic sources. The process by which campaign and traffic-source data is sent to Analytics and populated in reports has the following steps:
- Collection – values are sent to Google Analytics in the campaign and traffic-source fields using the SDKs or tracking code.
- Processing – collected values are used to populate the final report dimensions according to a processing logic.
- Reporting – campaign and traffic-source dimensions and metrics become available in the web interface and Reporting API.
Collection, processing, and reporting behavior can be customized.
The Analytics SDKs and tracking code use these fields when sending campaign and traffic-source data:
|Field Name||Protocol Parameter||Field Description||Sample Value|
|Campaign Source||Sets the source dimension in reports.|
|Campaign Medium||Sets the medium dimension in reports.|
|Campaign Name||Sets the campaign name dimension in reports.|
|Campaign Content||Sets the content dimension in reports.|
|Campaign Term||Sets the term dimension in reports.|
|Document Location||Sets dimensions whencustom campaign (utm) parameters are embedded.|
|Document Referrer||Describes the referring source and may set dimensions when no other campaign or traffic source fields have been set.|
Note that each session can be attributed to only one campaign or traffic source. Thus, if new campaign or traffic source values are sent to Analytics at collection time in the middle of an existing session, it causes the current session to end and a new session to start.
During processing, traffic-source and campaign field values are finalized into dimension values and attributed to sessions. The Campaign & Traffic Sources Processing Flowchart illustrates the processing logic.
The following methods apply to processing that uses
utm_ parameter values (e.g., display, social, referral, email, paid search, etc.).
- Source precedence—A direct-traffic visit that follows a paid-referred visit will never override an existing paid campaign. Whatever is the latest paid campaign visit is listed as the referral for the visit
- Campaign precedence—Each visit to your site from a different paid source—such as from a paid search-engine link, an Adwords link, or a banner ad—overrides the campaign cookie information set by a previous source.
- One Campaign Per Session—Each visit to your site from a different campaign—organic or paid—triggers a new session, regardless of the actual time elapsed in the current session. Specifically, a change in value for any of the following campaign URL parameters triggers a new session:
gclid. For more information on sessions, see How a session is defined in Analytics.