Skip to content

Filtering query parameters / post processing #1392

Open
@drphrozen

Description

Is your feature request related to a problem? Please describe.
Filtering query params to ensure compliancy across multiple solutions.
We have multiple teams implementing the same tracker across multiple subdomains and would like to have some guardrails in place for all of these.

Describe the solution you'd like
We want to be able to process URLs from a central position (when events/context are being added, fx).
This could be scoped to allow post processing of any events or contexts.

Describe alternatives you've considered

  • plugin with afterTrack implementation, mutating the Payload
  • customFetch - mutating the Request with regexes
  • implementing a custom PayloadBuilder - thanks to this we could manipulate the payload directly when it’s build - this is an optimal solution because we wouldn’t have to traverse the payload object twice - once when creating it and once when we want to filter and update query params in our events
  • implementing custom Emitter - similar to option one, but tied directly to a tracker implementation and configuration

Additional context
The solution should also be aware of the context (fx. which namespace is this running for?)

Metadata

Assignees

No one assigned

    Labels

    type:enhancementNew features or improvements to existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions