Remove trailing } from utm param (#20763)
This commit is contained in:
1 parent
f176ebf1da
commit
7e525779b7
1 file changed
+2
-1
@@ -1413,7 +1413,8 @@ export default class SalesforceCRMService implements CRM {
|
||||
return "";
|
||||
}
|
||||
|
||||
const utmParam = fieldValue.split(":")[1];
|
||||
// Remove the {utm: and trailing } from the field value
|
||||
const utmParam = fieldValue.split(":")[1].slice(0, -1);
|
||||
return tracking[`utm_${utmParam}` as keyof typeof tracking]?.toString() ?? "";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user