Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acquisition channel #4489

Merged
merged 5 commits into from
Sep 5, 2024
Merged

Acquisition channel #4489

merged 5 commits into from
Sep 5, 2024

Conversation

ukutaht
Copy link
Contributor

@ukutaht ukutaht commented Aug 29, 2024

Changes

This PR will detect and store the acquisition channel for each session. The way we detect channels is based on GA4 channels as documented here.

I've also added rules to detect as paid search when:

  • Source is Google and gclid url parameter is present
  • Source is Bing and msclkid url parameter is present

For now the plan is just to store this data and evaluate whether it looks correct. In a follow-up PR I will add an 'Acquisition Channel` report to the UI and make this data available from the Stats API as well.

I'm planning to extract the DB migration before deploying this PR.

Tests

  • Automated tests have been added

Changelog

Will add once the feature is visible to users

Documentation

Will add once the fetaure is visible to users

Dark mode

  • This PR does not change the UI

@ukutaht ukutaht requested a review from a team September 4, 2024 13:22
lib/plausible/ingestion/acquisition.ex Show resolved Hide resolved
lib/plausible/ingestion/acquisition.ex Show resolved Hide resolved
@ukutaht ukutaht force-pushed the acquisition-channel branch from 41ee85e to c3d5e7f Compare September 5, 2024 08:35
@ukutaht ukutaht merged commit d56d699 into master Sep 5, 2024
10 checks passed
@ukutaht ukutaht deleted the acquisition-channel branch September 5, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants