Skip to content

Use session_traffic_source_last_click for session traffic attribution #368

Description

@umairkarel

I noticed that the package currently uses custom logic to calculate session-level traffic parameters such as source, medium, campaign, channel_grouping, etc using last non-direct attribution.

However, Google has introduced a new field, session_traffic_source_last_click, which provides the same session-scoped traffic information using the standard last non-direct click attribution method. Leveraging this field could help:

  • Ensure better alignment with GA4's attribution methodology
  • Improve data consistency
  • Reduce custom logic and maintenance overhead

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    7.0-candidateRelease 7.0 uses the new fields and tables deployed after the launch of GA4

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions