Website: Update primary buying situations set by ads (#30757)

Changes:
- Updated the website's custom hook to set the new
primaryBuyingSituations values.
This commit is contained in:
Eric 2025-07-10 16:31:07 -05:00 committed by GitHub
parent 6e52b61ef9
commit e90f6e463d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -195,8 +195,8 @@ will be disabled and/or hidden in the UI.
// (This makes the experience simpler and less confusing for people, prioritizing showing things that matter for them)
// [?] https://en.wikipedia.org/wiki/UTM_parameters
// e.g.
// https://fleetdm.com/device-management?utm_content=mdm
if (['clear','eo-security', 'eo-it', 'mdm', 'vm'].includes(req.param('utm_content'))) {
// https://fleetdm.com/device-management?utm_content=it-major-mdm
if (['clear', 'security-misc', 'security-vm', 'it-major-mdm', 'it-gap-filler-mdm', 'it-misc'].includes(req.param('utm_content'))) {
req.session.primaryBuyingSituation = req.param('utm_content') === 'clear' ? undefined : req.param('utm_content');
// FUTURE: reimplement the following (auto-redirect without querystring to make it prettier in the URL bar), but do it in the client-side JS
// using whatever that poppushstateblah thing is that makes it so you can change the URL bar from the browser-side code without screwing up