Skip to content

GA4: For document location remove all the extra pym parameters from the URL #60

Description

@alykat

When our graphics are embedded, Pym appends a bunch of URL params with info about the parent location, iframe width, etc. These are useful in their own way, but they make for messy URLs in the GA4 reporting and it's hard to look at traffic to individual embeds within a multi-page graphics project.

See "document location" below in the GA tracking for this graphic.

Image

When we send the pageview event, can we trim off the extra URL params on the document location so it's just the page URL?

And then secondarily, we'll want to update the GA tracking for the interactive template to make sure embeds there are handled similarly (and don't also strip out any non-pym url params, in case there are project-specific params we want to track — thinking of how values are passed for elections embeds).

Activity

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

Metadata

Metadata

Assignees

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