Description
Problem description
We want a way to exclude or tag FOLA team members from our analytics so that we can make better decisions. Right now, our clicks are adding spurious data to our analytics. This is particularly important when we have low traffic as our use may make up a significant portion of clicks.
We currently (2023-09) have both Google Analytics and Microsoft Clarity analytics.
FOLA's Google Analytics data needs a more reliable way to identify and exclude FOLA volunteers and admins from the tally of website visitors. Currently we have two categories--"Phone Visitors" and "Desktop Visitors"--that explicitly exclude visitors who have clicked on obvious volunteer links: /login, /verification, /register, /opportunity, and /organizationedit. Despite this effort, "Desktop Visitors" still often includes FOLA volunteers because the volunteers may be testing something on FOLA website without clicking to any of those links. In particular, "Desktop Visitors" often include visitors who are likely FOLA volunteers/staff. For this reason, our Google Analytics reports have focused on exclusively phone visitors so far. This is a problem because "Dektop Visitors" represent about two thirds of FOLA's visitors overall.
Desired outcome
In order to improve the quality of our Analytics data and our understanding of visitors looking for food (or people helping them) on desktop devices, set up a cookie that FOLA volunteers can activate in order to opt out of Analytics data collection.
-
Follow the procedure described here: https://www.analyticsmania.com/post/how-to-exclude-internal-traffic-in-google-analytics-4/ (search for the heading "Excluding internal traffic based on a cookie").
- Set a cookie for internal users
- Set a cookie variable
- Create a developer filter in GA4
- Create a lookup table in GTM to override the traffic_type parameter
- Test the filters
- Activate both filters
-
Find a way to block or tag ourselves for Microsoft Clarity
-
Implement a way for FOLA members to set the cookie(s)
- Interface Design
- Set these cookies automatically once user logs into the site
- Add a button on the log-in page that when clicked, sets the cookies on the user's browser. We would need to educate our FOLA members to click that button. It might be nice to have some indicator when the cookie is set or if it's already been set, but this is not MVP. Will need to educate FOLA team members to use this.
- Or find a different/additional solution
- Dev: Implement the above or other solution
- Interface Design
Some caveats
We likely can't exclude all FOLA users, but we can try to get most of them.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status