Skip to content

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

@knice

Description

@knice

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions