Track Conversions Through iFrames with Google Tag Manager


Google Tag Manager Integration

In Google Tag Manager, open the container that you inserted in the iFrame and click the Preview button. Enter the URL of the parent page and press Start. When the preview mode opens, you might see a notification offering you to enable GTM in the iFrame as well. Click Enable.


O Que é O Google Tag Manager E Por Que Usálo? A Verdade Sobre O Gerenciador De Tags Do Google

Implementing the solution with Google Tag Manager. Step 1: Either in a separate Tag Manager account, or by asking your iframe developers to implement code directly, insert the following code to be fired upon a successful trigger — for example, making a booking. Customise your domain name and if you want, the event payload too.


Track Conversions Through iFrames with Google Tag Manager

The top one ( a.k.a. the