In BigQuery, traffic attribution data is available at the user (first visit), session, and event levels, corresponding to the different scopes used in Google Analytics:
- User-scoped: Provides attribution for the user's first arrival.
To determine first user traffic source, you can use the
traffic_sourcedimensions associated with thefirst_visitevent in the BigQuery export:traffic_source.sourcetraffic_source.mediumtraffic_source.name
- Session-scoped: Provides attribution for the source of each individual
session. To determine session traffic source, you can use the
traffic_sourcedimensions associated with thesession_startevent:traffic_source.sourcetraffic_source.mediumtraffic_source.name
- Event-scoped: Provides attribution for conversion events, using the
cross-channel last-click attribution model. Every event in the BigQuery
export has
traffic_sourcepopulated. For conversion events, these fields contain the attribution data for that event:traffic_source.sourcetraffic_source.mediumtraffic_source.name
Use these fields to perform detailed attribution analysis within BigQuery and join this data with other first-party datasets for enhanced insights.