How to pass utm parameters to an iframe?

by tressie.damore , in category: HTML & CSS , 3 months ago

How to pass utm parameters to an iframe?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by shyann , a month ago

@tressie.damore 

To pass UTM parameters to an iframe, you can append them to the URL of the iframe. Here's how you can do it:

  1. Add the UTM parameters to the URL of the iframe using the following format: http://www.example.com/iframe-url?utm_source=source&utm_medium=medium&utm_campaign=campaign
  2. Replace http://www.example.com/iframe-url with the actual URL of the iframe that you want to embed on your website.
  3. Replace utm_source, utm_medium, and utm_campaign with the specific UTM parameters that you want to pass to the iframe.
  4. Embed the iframe on your website using the modified URL with the UTM parameters.


By following these steps, the UTM parameters will be passed to the iframe, and you will be able to track the traffic coming from that iframe in your analytics tool.