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

Add a link to GA4 profile with pre-populated hostname comparison to WP admin panel #12

Open
knice opened this issue Nov 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@knice
Copy link
Member

knice commented Nov 29, 2022

This URL can be altered to provide a direct link into GA4 with a pre-populated comparison for a particular hostname:

https://analytics.google.com/analytics/web/#/p307426166/reports/explorer?params=_u..nav%3Dmaui%26_u..comparisons%3D%5B%7B%22name%22:%22Hostname%20includes%20engineering.ucsc.edu%22,%22filters%22:%5B%7B%22fieldName%22:%22hostname%22,%22expressionList%22:%5B%22engineering.ucsc.edu%22%5D,%22isCaseSensitive%22:true%7D%5D%7D%5D&r=3361130165&ruid=all-pages-and-screens,life-cycle,engagement&collectionId=3361128779

Can we add this link to the WP admin panel sidebar as a dynamic link that populates the GA4 link with the site hostname automatically?

@knice knice added the enhancement New feature or request label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant