@nuskin/ns-shop 7.8.3 → 7.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -503,7 +503,8 @@ const populateCategory = (salesOrder) => {
|
|
|
503
503
|
} else if (util.getSponsorId()) {
|
|
504
504
|
// affiliates don't use a subdomain. So if we have a sponsor and it isn't a pitch then we consider it a storefront
|
|
505
505
|
salesOrder.Category = "STOREFRONT";
|
|
506
|
-
} else if (utmMedium &&
|
|
506
|
+
} else if (utmMedium &&
|
|
507
|
+
(utmMedium.toLowerCase().includes('cpc') || utmMedium.toLowerCase().includes('paidsearch'))) {
|
|
507
508
|
salesOrder.Category = 'PAIDSEARCH';
|
|
508
509
|
} else if (utmMedium && utmMedium.toLowerCase().includes('paidsocial')) {
|
|
509
510
|
salesOrder.Category = 'PAIDAD';
|