Why can’t Google Analytics track conversion events inside of an iFrame?īy default, it is not possible to track events that happen within an iFrame element if you don’t have direct control over the iFrame element’s content. Many websites like Facebook and YouTube use iFrames to allow users to quickly add content, applications, videos, and more, with essentially one line of code on the user’s website.ĭue to the simplicity of copying and pasting just a line of code, some Email Service Providers also opt to let their users embed forms on their site only via iFrame embed code to reduce confusion or unintentional editing. The iFrame HTML element is often used to insert content from another source, such as an advertisement, into a Web page.” – “An iFrame (Inline Frame) is an HTML document embedded inside another HTML document on a website. For example:įollowing the steps above, the code in your HTML block element should look similar to this example: Finally, adding a small piece of Javascript to the HTML block element in your campaign will power the conversion tracking.} /* Sample styling for text instructions */ Next, we’ll add CSS to the campaign to style the HTML link and (optionally) text instructions.Add your iFrame element’s code to the HTML block element in your campaign.This can help manage their expectations when interacting with your campaign. (optional) Add text instructing visitors to double click.This link should be added before your iFrame element. In the HTML block element, first, add an HTML link to cover your iFrame element. ![]()
0 Comments
Leave a Reply. |