department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

GA4 debug: 2 BTSSS click events #91874

Open wesrowe opened 2 weeks ago

wesrowe commented 2 weeks ago

Description

User story

As a Cartography team member, I want the travel pay link to only send one click event to GA4, so that we can better trust GA4.

Notes

Very odd:

Aug 22-29:

Sept 3 only:

image

Possible tasks:

Acceptance criteria

allanto-ah commented 1 week ago

Not sure if this is helpful or anything, but wanted to a drop a note in case, but when inspecting with the browser devtools, I see that the link text are two different things or something.

https://github.com/user-attachments/assets/3427de31-827b-4500-a078-f60afdd30c87

carlosfelix2 commented 3 days ago

Using the GA4 debugger, one can see that there are 3 different events being recorded on a link click:

Every time a link that goes outside the current domain/hostname is clicked then two more events are logged (click and outbound link). There are a few of such links in the landing page and it includes any links to MHV Classic and other sites like Health Chat.

The question now is if this is really an issue as the events can be clearly filtered out. A filter with the following should be enough to isolate these events: