Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

[L2-UX] GA: set the chainId as a custom dimension #2807

Merged
merged 4 commits into from
Oct 7, 2021
Merged

[L2-UX] GA: set the chainId as a custom dimension #2807

merged 4 commits into from
Oct 7, 2021

Conversation

katspaugh
Copy link
Member

What it solves

Resolves #2703

How this PR fixes it

Sets the chain id initially and when it changes.

How to test it

I've tested it locally by providing the GA id in an env variable. It correctly sends the cd1 query param depending in the network.

Screenshots

Rinkeby:

Screenshot 2021-10-07 at 13 41 22

After switching to Polygon:

Screenshot 2021-10-07 at 13 51 46

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link
Member

@iamacook iamacook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@katspaugh katspaugh merged commit d64b620 into l2-ux Oct 7, 2021
@katspaugh katspaugh deleted the ga branch October 7, 2021 12:06
@katspaugh katspaugh mentioned this pull request Oct 7, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2021
@iamacook iamacook linked an issue Oct 11, 2021 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[L2-UX] Use a single GA tracking id
2 participants