Notifications
Clear all

Any best practice for event tracking on iframe embedded page with GTM?

4 Posts
2 Users
0 Likes
483 Views
Posts: 14
Topic starter
(@mayumibk)
Eminent Member
Joined: 3 years ago

Hi experts,

I would like to track events on iframed pages using Google Tag Manager and Google Analytics.

However, it looks like the "triggers" does not work on iframe pages in the normal way.

Is there any best practice around this?

Regards,

Mayumi

Topic Tags
3 Replies
TinyWebGallery
Posts: 874
Admin
(@admin)
Prominent Member
Joined: 15 years ago

Can you check if you maybe need cookies which are not set then? In the browser console you should get messages on the "Issues" tab.

Best regards,

Michael

Reply
1 Reply
(@mayumibk)
Joined: 3 years ago

Eminent Member
Posts: 14

@admin 

Hi, thanks for your reply.

Looks like the cookies for the embedded site's domain are successfully saved... 

Do you ever heard of cases of events tracking on iframe sites using Google Tag Manager and Google Analytics?

Reply
TinyWebGallery
Posts: 874
Admin
(@admin)
Prominent Member
Joined: 15 years ago

When checking your screenshot it looks like there are many affected cookies. 

So the events are fired normally if the site is not running in an iframe? 
Have you seen posts like this: https://support.google.com/analytics/thread/35313442/google-analytics-blocked-in-iframe-due-to-%E2%80%9Csamesite%E2%80%9D-%E2%80%9Csecure%E2%80%9D-setting-of-cookies?hl=en

Best regards, Michael

Reply