mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
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:
parent
6e52b61ef9
commit
e90f6e463d
1 changed files with 2 additions and 2 deletions
4
website/api/hooks/custom/index.js
vendored
4
website/api/hooks/custom/index.js
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue