Skip to content

Commit

Permalink
fix: added utm prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuran-deriv committed Dec 14, 2023
1 parent e3b9e3f commit a81922b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/scripts/cookie-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const shouldOverwrite = (new_utm_data, current_utm_data) => {
if (!current_utm_data && valid_new_utm_source) {
return true;
}

console.log(object);
// If we have old utm data, 3 fields are required for new utm data to rewrite the old one
const required_fields = ["utm_source", "utm_medium", "utm_campaign"];
const has_new_required_fields = required_fields.every(
Expand Down Expand Up @@ -93,7 +93,7 @@ const shouldOverwrite = (new_utm_data, current_utm_data) => {
"utm_click_id",
"utm_adgroup_id",
"utm_campaign_id",
"msclkid",
"utm_msclk_id",
];

let utm_data = {};
Expand Down

0 comments on commit a81922b

Please sign in to comment.