Option 1: Using embed config
to pass UTM parameters
Add data attributes to your embed element for each UTM parameter you want to track:
Depending on the type of embed you are using, you do it in following ways.
a. Element Click type embed:
- Make sure to modify the code taken from Embed Snippet Generator and modify as mentioned below.
- Make sure to read the UTM parameters yourself from your webpage and pass them in the config. e.g. You could read from the query params as shown below. This would ensure that the parameters like your-website-example.com?utm_source=source&utm_medium=medium&utm_campaign=campaign are now passed to the embed.