New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new GA4 'focus loss' tracker #3920
Conversation
87312cf
to
eb03d06
Compare
eb03d06
to
0dcafac
Compare
0dcafac
to
a0e9e4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, well done 👍
Just a couple of minor things.
var element | ||
var expected | ||
|
||
function agreeToCookies () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking: I think we're using this kind of function in a few places now - worth raising an issue/adding a ticket to see if we can define it once in a helper somewhere instead of repeating it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good 👍
@@ -740,7 +740,7 @@ describe('A specialist link tracker', function () { | |||
}) | |||
|
|||
afterEach(function () { | |||
GOVUK.cookie('cookies_policy', null) | |||
GOVUK.setCookie('cookies_policy', null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that .cookie
and .setCookie
were equivalent, is that not the case? Was this causing an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault - saw it and thought it was a typo. Will revert
@@ -0,0 +1,16 @@ | |||
# Google Analytics 4 focus loss tracker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good documentation. Can you include a link to it in ga4-all-trackers.md
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done 👍
a0e9e4f
to
b7e9b5d
Compare
b7e9b5d
to
c4cad6f
Compare
What
ga4-focus-loss-tracker
static
and seems to be working as intendedWhy
keypress
.Visual Changes
None.