-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Added timezone and preferred_locale to JS tracking event #8205
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
Added timezone and preferred_locale to JS tracking event #8205
Conversation
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.
Tested and works great !
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.
Hello @kuzmany
I notice that the preferred locale field is not really filled here. I just check the contact page with my first test and saw this :
So I tought that was good.
But when I edit the contact there is nothing in the field.
Preferred locale is a list and I think the info from the script doesn't match the list value so it doesn't register.
Can you do something about it ?
Thanks
@florentpetitjean last commit should fixed 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.
Works now !
Thanks
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.
Working like a charm in production environment for 3 months
954fa94
to
9687d32
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.
@RCheesley If you don't work on dev enviroment, require |
I was in the dev environment (you can see the toolbar in the footer of the screenshot - mid way through as the screen scrolled when I took the screenshot :) ) |
@RCheesley I am not sure if on 127.0.0.1 tracking work properly. These IP is on do not track list. You should see both parameter in tracking event in browser console (what do you see?) |
Perhaps you could share where I can find that information, happy to check but I don't know where to start looking and the screenshot doesn't indicate to me where in developer tools I'll find that information. |
@mautic/acquia-po can we have a developer testing that one. A little tricky for end user. Thanks |
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.
👍
Testing this again on Mautibox and I am finding that the locale is being set to 'en' but the timezone is not being set at all. Therefore unable to approve this until more detailed instructions are provided or someone else is able to test. |
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.
No issue found in code and working as expected.
Codecov Report
@@ Coverage Diff @@
## features #8205 +/- ##
==============================================
+ Coverage 41.25% 41.54% +0.28%
- Complexity 34563 34575 +12
==============================================
Files 2060 2063 +3
Lines 111535 111560 +25
==============================================
+ Hits 46014 46347 +333
+ Misses 65521 65213 -308
|
@all-contributors please add @florentpetitjean for userTesting |
I've put up a pull request to add @florentpetitjean! 🎉 |
Please be sure you are submitting this against the staging branch.
Description:
This PR added option to set timezone and preferred_locale from JS tracking code.
Timezone detection taken from https://github.com/Valve/fingerprintjs2/blob/master/fingerprint2.js#L443
Steps to test this PR: