: Pageviews for iFrame content not matching pageviews for parent page in Google Analytics I have a page with content hosted in an iFrame, both using the same Google Analytics account ID. When
I have a page with content hosted in an iFrame, both using the same Google Analytics account ID. When I look at the pages report, the parent page has about 9000 unique views, but the iFrame content only has 3700. Anyone have an idea what could cause that kind of discrepancy?
My only guess is that it would be caused by people moving on before the iFrame content has a chance to load, but the average time on page for the host page is 56 seconds, so that doesn't seem possible.
This is the page in question.
The flipbook is hosted in the iFrame on a separate domain. I have each page of the flipbook triggering a virtual pageview to try to evaluate engagement with the book - when the flipbook loads, it fires a pageview for the page it is on, so that is the page I'm using for the 3700 number. I also looked at the source of the iFrame in the pages report, and that number just about matches the virtual pageviews so that piece is consistent.
More posts by @Eichhorn148
1 Comments
Sorted by latest first Latest Oldest Best
You don't seem to be using _getLinkerUrl(). That would be my best guess as to the source of the problem.
developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory
Elsewhere, I found this comment:
If you don't use _getLinkerUrl GA inside the iframe will think it's
a brand new visit referral from the top level page.
stackoverflow.com/questions/11724605/google-analytics-and-iframe-content-will-all-tracking-work
If you say page 2 and 3 are also counted on page-load, then if these are both triggering a top level page visit at the same time, then it would explain why your top page has three times as many hits.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.