Analytics still firing in embeds
Closed this issue · 2 comments
hobbes7878 commented
Needs a check that script isn't loaded in an iframe.
hobbes7878 commented
cc: @MatthewWeberTR we'd originally said we didn't want to fire analytics on embeds, but just confirming we haven't changed our minds. Current script is firing whenever a client uses one of our embed codes. Does not if they self-host.
We've been using these numbers to see where our embeds are being used. (Could maybe add some specific metadata if we do want to intentionally track, i.e., parent page path...)
I'll put some code to limit analytics to just graphics.reuters.com pages in a branch PR for now.
hobbes7878 commented
Talked to Matt. We're gonna keep the behaviour as is.