snowplow / snowplow/snowplow-javascript-tracker
Allow media/youtube `enable` functions to also accept an array of `id`s
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 590
- Forks
- 232
- Avg merge
- 2h 22m
- Merged PRs (30d)
- 3
Description
Currently id is required to be a string, meaning the function (either enableYouTubeTracking or enableMediaTracking has to be called multiple times for as many videos. Allowing id to accept either a string or an array of strings would be a convenient way to track multiple videos.
From a cursory glance at the code it seems like it would be fairly straightforward to add in a non-breaking way.
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
Start with the enableYouTubeTracking and enableMediaTracking entry points and inspect how each currently handles the id argument. Check the surrounding media and YouTube tests if present, then verify that both functions support a string or an array of strings while preserving existing single-id behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- analytics
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- Half a day
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100