Skip to content

Commit

Permalink
fix: remove affiliate priority
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadh committed Feb 3, 2023
1 parent 5aabce5 commit c38b576
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions public/scripts/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,7 @@ const shouldOverwrite = (new_utm_data, current_utm_data) => {

// Overwrite based on the order of priority
if (has_new_required_fields && has_curr_required_fields) {
if (new_utm_data.utm_medium.includes("aff"))
return true; // 1. Affiliate tags
else if (
new_utm_data.utm_medium.includes("ppc") &&
!current_utm_data.utm_medium.includes("aff")
)
return true; // 2. PPC tags
else if (
if (
!current_utm_data.utm_medium.includes("ppc") &&
!current_utm_data.utm_medium.includes("aff")
)
Expand Down

0 comments on commit c38b576

Please sign in to comment.