mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Adding cpc for paid search (#43274)
Adding the code cpc - for paid search so that we get attribution correct.
This commit is contained in:
parent
8509b18c46
commit
27bfa6b20e
1 changed files with 2 additions and 1 deletions
|
|
@ -224,6 +224,7 @@ module.exports = {
|
|||
// wr: 'Web referral',
|
||||
// soc: 'Organic social',
|
||||
// "Digital" sources:
|
||||
cpc: 'Paid search (PS)', //note: either cpc or ps both map to Paid Search
|
||||
ps: 'Paid search (PS)',
|
||||
so: 'Paid social (SO)',
|
||||
pm: 'Paid media (PM)',
|
||||
|
|
@ -247,7 +248,7 @@ module.exports = {
|
|||
|
||||
attributionDetails.initialUrl = marketingAttributionCookie.initialUrl;
|
||||
|
||||
if(['ps', 'so', 'pm', 'cs', 'em'].includes(lowerCaseMediumValue)) {
|
||||
if(['cpc','ps', 'so', 'pm', 'cs', 'em'].includes(lowerCaseMediumValue)) {
|
||||
// If the medium is set to a "Digital" source, we'll set the (most recent/source) campaign to the utm_campaign value the user visited the website with.
|
||||
attributionDetails.campaign = marketingAttributionCookie.campaign;
|
||||
attributionDetails.sourceChannel = 'Digital';
|
||||
|
|
|
|||
Loading…
Reference in a new issue