fleet/website/api/helpers
kilo-code-bot[bot] f47c0e5670
Add event UTM medium codes to source channel attribution (#43150)
## Summary

- Adds 9 event-related UTM medium codes (`mc`, `rc`, `le`, `ec`, `fe`,
`pe`, `se`, `wh`, `ws`) to the marketing attribution logic in
`update-or-create-contact-and-account.js`
- Maps these codes to the `'Event'` source channel, following the same
pattern used for Digital and Organic channels
- Adds friendly name mappings for each event code (e.g., `mc` → "Major
conference (MC)", `wh` → "Fleet hosted webinar (WH)")

### UTM Medium → Source Channel Mapping

| Code | Description | Source Channel |
|------|-------------|---------------|
| `mc` | Major conference | Event |
| `rc` | Regional conference | Event |
| `le` | Local event/meetup | Event |
| `ec` | Executive community | Event |
| `fe` | Field event/workshop | Event |
| `pe` | Partner event | Event |
| `se` | Speaking engagement | Event |
| `wh` | Fleet hosted webinar | Event |
| `ws` | Sponsored webinar | Event |

### Changes

The source channel determination logic now has three branches:
1. **Digital** — `ps`, `so`, `pm`, `cs`, `em` (unchanged)
2. **Event** — `mc`, `rc`, `le`, `ec`, `fe`, `pe`, `se`, `wh`, `ws`
(new)
3. **Organic** — everything else / no UTM medium (unchanged, remains the
default fallback)

Built for [John
Jeremiah](https://fleetdm.slack.com/archives/D0AGMBRKRR9/p1775584746996929)
by [Kilo for Slack](https://kilo.ai/features/slack-integration)

---------

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: Eric <eashaw@sailsjs.com>
2026-04-07 18:11:38 -05:00
..
ai Switch query generator to use Anthropic Sonnet on the backend (#41521) 2026-03-16 11:48:33 -05:00
android-proxy Website: Update Android Proxy endpoints to return 404 responses if an Android Enterprise are not managed by Fleet (#33816) 2025-10-06 12:50:42 -05:00
engineering-metrics Track SDLC metrics. (#31409) 2025-08-19 13:24:54 -05:00
fleet-sandbox-cloud-provisioner Website: Add admin page to manage the Fleet Sandbox waitlist (#13111) 2023-08-04 18:32:00 -05:00
github-automations Website: Update Github helper (#19892) 2024-06-20 11:23:50 -05:00
iq Website: Update get-enriched helper (#39347) 2026-02-04 14:53:41 -06:00
microsoft-proxy Website: Add Microsoft compliance proxy endpoints. (#27403) 2025-06-11 13:01:36 -05:00
salesforce Add event UTM medium codes to source channel attribution (#43150) 2026-04-07 18:11:38 -05:00
strings Website: Allow double curly brace templates in Markdown code blocks. (#25179) 2025-01-06 14:07:31 -06:00
create-license-key.js Website: Update license key generator (#22138) 2024-09-16 16:58:09 -05:00
get-extended-osquery-schema.js Website: Use GitHub API to get lastmodifiedAt timestamps (#20859) 2024-08-02 17:10:56 -05:00
redact-user.js Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00
send-template-email.js Website: requested changes from website backend code review (#21934) 2024-09-10 14:36:01 -05:00