-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improvements to our RUM implimentation #2516
Comments
It looks as if LUX defaults to 100% if
This can be fixed by setting the |
With the release of v24.15.0 of the components gem, the sampling rate for LUX has been now set to 1% instead of the default 100%. As the gem verison of LUX is now being used by Static, the bump to v24.15.0 of the gem should fix the sampling rate issue across all of the frontend apps regardless of the template that is being used. |
I've checked and the response now has an image |
A user's first page visit is now measured after (and only after) they've consented to the appropriate cookies. This was released in v24.18.1 of the components gem, which was then bumped in Static in #2539. |
I've raised a pull request to remove the |
This pull request to sort out |
Awesome work as always @injms! Closing issue as all fixed! |
These apply to both static and govuk_publishing_components.
Make sure LUX data is captured when a user first accepts the cookie banner
Iniitial data is currently discarded and the beacon only fires on the 2nd page load. SpeedCurve have guidence on how to handle with cookie banners here.
Remove the CSP workarounds
connect-src
etcSC support have stated that they will change the content type of the image early next week so they match, this workaround will then no longer be required.
Double check hard-coded sample rate is set to 1%
I believe we may have a 100% sample rate hard-coded somewhere. e.g.
LUX.sampleRate(100)
. What is currently happening is the JS is sending 100% traffic to SC, the UI is set to 1% so 99% of the beacons are being rejected by the server.Note on sample rates:
if we want 1% across all pages then it’s best to remove
sampleRate()
from the JS in our pages and set 1% in the UI settings. Or if we want different sample rates on different pages set targeted sample rates per page usingsampleRate()
and then use 100% in the settings.For the moment we should remove the hard-coded
sampleRate()
and rely on the SC UI to set to 1%.Todo List:
The text was updated successfully, but these errors were encountered: