Meeting iFram Integration with WebFlow - Event Tracking

Hey,

We have an integration with the meeting iFrame and want to track it as an event in GA4.

Tested adding the Google Tag Manager code, but still it’s not working properly and not tracking all events in GA4.

Do you have any guideline how to implement it corretly as I was following one found online.

Thanks.

Hello @cvelev

make sure you have created a GA4 property in your Google Analytics account, and have the GA4 tracking code installed on your website using Google Tag Manager.

To track the meeting iFrame as an event, you can use the dataLayer to send an event when the meeting is started or ended. Here’s an example of how you can do this:

Add the following code to your website’s HTML before the Google Tag Manager code:

<script>
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag('js', new Date());
</script>

Create a custom event in Google Tag Manager for the meeting iFrame. Go to “Tags” > “New” > “Tag Configuration” > “Google Analytics: GA4 Event”.

In the “Triggering” section, create a trigger for the custom event. Go to “Triggers” > “New” > “Trigger Configuration” > “Custom Event”. Set the trigger to fire when the event equals “meeting_started” or “meeting_ended”.

Add the following code to your website’s JavaScript where the meeting iFrame is started or ended:

<script>
 window.dataLayer.push({
 'event': 'meeting_started' // or 'meeting_ended'
 });
</script>

Make sure to replace “meeting_started” and “meeting_ended” with your own event names.

Once you have implemented this code, test it by starting and ending a meeting and checking the Realtime Events report in Google Analytics. You should see the custom event being tracked as “Meeting Started” or “Meeting Ended” in GA4.

Hey, @himanshurauthan ,

I’m not sure if I explained myself correctly :slightly_smiling_face: I was talking about the Book a Meeting iFrame on a websites’ contact us page.

I’m a bit confused with the meeting_started & meeting_ended events, as we have just one action there - Booking a meetings :slightly_smiling_face:

Thanks a lot