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

Remove safe address tracking for GA#1683

Merged
dasanra merged 15 commits intodevelopmentfrom
issue-1642
Dec 9, 2020
Merged

Remove safe address tracking for GA#1683
dasanra merged 15 commits intodevelopmentfrom
issue-1642

Conversation

@nicosampler
Copy link
Contributor

Closes #1642.

  • This PR removes the safe address from GA tracking by replacing any address with SAFE_ADDRESS placeholder.

@github-actions
Copy link

github-actions bot commented Dec 1, 2020

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Dec 1, 2020

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 3 0
Ignored 0 N/A
  • Result: ✅ success

  • Annotations: 3 total


[warning] @typescript-eslint/explicit-module-boundary-types

Require explicit return and argument types on exported functions' and classes' public class methods


Report generated by eslint-plus-action

GoogleAnalytics.set({
ReactGA.initialize(trackingID, {
gaOptions: {
siteSpeedSampleRate: 100,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we remove this parameter? I think this is only for testing purposes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, thx!

@ghost
Copy link

ghost commented Dec 2, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@nicosampler nicosampler requested a review from dasanra December 2, 2020 11:38
@ghost
Copy link

ghost commented Dec 2, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Dec 2, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Dec 2, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

1 similar comment
@ghost
Copy link

ghost commented Dec 2, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Dec 2, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@francovenica
Copy link
Contributor

@tschubotz Talked with Nico and I'll need access to Google analytics to check this one. Can you give me access?

@tschubotz
Copy link
Contributor

@francovenica just added you to all web projects on https://analytics.google.com

@francovenica
Copy link
Contributor

francovenica commented Dec 3, 2020

It seems that the Travis system is having issues and it is not creating an env for rinkeby. I tried in volta, but I've checked in the network tab and it seems GA is not working there (or is not being called, I don't know if it is even configured for volta)

So to test this Nico and I checked in his local env with him configurating the env for Rinkeby and having the GA also configured for Rinkeby

He visited several pages that have the .../safes/SAFE_ADDRESS/ structure and instead of login the actual address in GA, it would log /safes/SAFE_ADDRESS/balances for example

This is a snapshot of GA of today. Nico visited several pages and we checked that those are registered as safes/SAFE_ADDRESS instead of the real actual address.
Note that there still some addresses in GA, those eventually will disappear as the fix is implemented in low test env and prod
image.png

https://analytics.google.com/analytics/web/#/report/content-overview/a180094170w216025621p206479581/_u.date00=20201203&_u.date01=20201203/

@ghost
Copy link

ghost commented Dec 3, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

// prevent logging safeAddress
let safePage = `${SAFELIST_ADDRESS}/SAFE_ADDRESS`
if (matchSafeWithAction.params?.safeAction) {
safePage += `/${matchSafeWithAction.params?.safeAction}`
Copy link
Contributor

Choose a reason for hiding this comment

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

could we use template literals instead?

@ghost
Copy link

ghost commented Dec 4, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Dec 4, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Dec 5, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Dec 5, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Dec 9, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Dec 9, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Dec 9, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Dec 9, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Dec 9, 2020

Travis automatic deployment:
https://pr1683--safereact.review.gnosisdev.com/volta/app

@dasanra dasanra merged commit 2fe1fb2 into development Dec 9, 2020
@dasanra dasanra deleted the issue-1642 branch December 9, 2020 19:45
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2020
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.

Remove Safe address from Google Analytics tracking

6 participants