GA custom dimensions are not working
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Bug Description
Custom dimensions in Google Analytics seem like they are not working
Steps to Reproduce
- On line https://github.com/Uniswap/interface/blob/0041b787ec333845b9ea0a5bf35b6e77a3db5484/src/components/analytics/index.ts#L78 try some hard-coded value that is easy to spot in console
- Check the events sent, by GA debug plugin or just in GA console and you will notice that there is no dimension value being sent with the event and its not available in the GA console
Expected Behavior
The dimension should be sent with all GA events
Additional Context
Its seems that the dimension is not being properly set.
Could be something related to react-ga4 implementation.
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 at src/components/analytics/index.ts line 78 and reproduce the issue using a distinctive hard-coded dimension value. Inspect the events with the GA debug plugin or Google Analytics console, then verify that the dimension is included with all GA events after the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- analytics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100