@genevieve_boehm
To track a video click inside an iframe using Google Tag Manager, you can follow these steps:
- Create a new tag in Google Tag Manager to handle the video click tracking.
- Go to the Google Tag Manager dashboard and click on "Tags" from the left-hand sidebar.
- Click on "New" to create a new tag.
- Give your tag a descriptive name.
- Under "Tag Configuration," click on the tag template and choose the appropriate video player that you are using (e.g., YouTube, Vimeo).
- Configure the tag settings based on the video player you selected. For example, if you selected YouTube, add the YouTube video ID or the video URL.
- Under "Triggering," click on the pencil icon to select a trigger for the tag.
- Click on "New" to create a new trigger.
- In the trigger configuration, select the "Click" trigger type.
- Under "Some Clicks," click on the pencil icon to configure the triggering conditions.
- Set the conditions to match the desired click event inside the iframe. This may involve inspecting the HTML elements to find the appropriate selector.
- Save the trigger and go back to your tag configuration.
- Select the newly created trigger for your tag.
- Save the tag configuration.
- Click on "Submit" to publish your changes.
Now, when a user clicks on the specified element inside the iframe, the tag will be triggered and the video click will be tracked using Google Tag Manager.