Uniswap / Uniswap/interface

GA custom dimensions are not working

Open
#4,728 0 comments 0 reactions 0 assignees View on GitHub

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

  1. 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
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.