snowplow / snowplow/snowplow-javascript-tracker
Filtering query parameters / post processing
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 590
- Forks
- 232
- Avg merge
- 2h 22m
- Merged PRs (30d)
- 3
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?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files, tests, or an entry point. First clarify whether processing belongs at event/context creation, payload building, emitting, or request handling, and how namespace-aware filtering should be configured. Done should include an agreed central mechanism for URL query-parameter filtering across the tracker’s events or contexts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- analytics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100