Boxever.addUTMParams(event)
The addUTMParams() function adds every UTM parameter from the URL of the current webpage to the event object.
Parameters
|
Parameter |
Type |
Description |
Note |
|---|---|---|---|
|
object |
All the event data. |
N/A |
Return value
none
Example
Here's an example of UTM parameters:
https://myretailsite.com?utm_source=newsletter&utm_medium=email&utm_campaign=summer_sale&utm_term=running+shoes
By default, the event object does not include UTM parameters. To add the UTM parameters to the event object, pass the event object to the addUTMParams() function:
The event data that is sent to Sitecore CDP now includes all UTM parameters: