I want to block GA tracking from iframe within my website, which is a parent, GA is set in the script on the product site, there is a description of the product which is an iframe.
At the moment it double the pageview number. Is it possible to block iframe tracking, so it will only tack the product page (parent one).
Greetings
Related
We have a web site that already has GA page tracking and Goals set up to track conversion based on URLs, and these are working fine via GTM & GA.
We want to introduce a new product and track it via a separate goal/funnel.
Problem is the pages stay the same, so there isn't any change in the URL to differentiate when a customer has selected this product.
Our flow is as follows:
/Price
/Up-sell
/Summary
/Payment
/PaymentComplete
The customer selects the product on the Price page.
In order to get the Goals to track for this new product I've created a series of virtual page views that are triggered when the product is clicked and persist on subsequent pages.
So the URLs within GA now look like:
/Virtual/Price
/Virtual/Up-sell
/Virtual/Summary
/Virtual/Payment
/Virtual/PaymentComplete
I can see the page views within GA fine.
When I create a new goal I base it off the /Virtual/ urls.
However, because GA is firing on each page by default I effectively get two URLs in GA the original URL, e.g. /Price AND /Virtual/Price this then causes issues tracking between pages in the funnel & goal.
What am I doing wrong here?
How does everyone else manage this scenario?
You can add exceptions to the GA trigger in GTM, add the URLs that you don’t want. Or, don’t fire the trigger that sends the virtual page.
Currently we have a page laid out like this:
Page on Domain A contains an iFrame with Domain B inside it.
These are both our domains and we are using the same Google Tag Manager/Google Analytics code on both domains. How do I track traffic data into the iFrame from the parent page, so it does not display as "direct" and I can see all the correct information.
It is very important for me to be able to see the parent URL which is hosting the iFrame.
I do not think this is a duplicate question because we control both domains.
Thanks!
I would suggest adding the parent page URL to the Querystring for the embedded iFrame. So if the iFrame URL is current "http://myiframedomain.com/page1.html" it would become "http://myiframedomain.com/page1.html?embeddedIn=http%3A%2F%2Fmyparentdomain.com%2Fpagewithiframe.html"
On the pages within the iFrame you could read this data with either server side code or javascript and pass it to analytics.
In order to set the referrer manually in GA, you could use _gaq.push(['_setReferrerOverride','http://myparentdomain.com/pagewithiframe.html']);
For more on manually controlling referrers with GA, see https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiCampaignTracking#_gat.GA_Tracker_._setReferrerOverride
I have a form hosted by a third party embedded on my site via an iframe (I'll call this the "Parent iFrame"). I would like to track those form submissions in Google Analytics. If I embed another iframe (src being a page on my site that contains my site's GA code; I'll call this the "Child iFrame") within the Parent iFrame's form submission confirmation message, when the Child iFrame loads will that be recorded as a Pageview in Google Analytics?
I researched this question and believe the answer is yes, but the answers I found were usually to more specific questions that didn't directly address this probably much more basic question. Thanks for any help!
I'm a little concerned about the iframe within an iframe situation, but I'm hoping that a visit within an iframe is simply tracked like any other page. Just didn't want to assume... :)
On my page (domain x) i have form in iframe (on domain y). I want to track conversion (click on submit button). I have GA in iframe form but but form after sending is redirecting to domain x. In GA I have conversions but I as a medium I can see always (direct)(none).
You need try use cross-domain tracking settings in GATC on form page and in iFrame too. https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain
I have a several web pages with a graphic banner to be used in an iframe on affiliates website. But what is happening is that those iframe pages are bloating our pageviews in Google Analytics. I want to track the link of the banner, but not count the webpage as a page view.
I have a noindex and follow in the meta information, but I am taking that this is not enough because the pages are still being tracked as a pageviews.
Is there something that I am overlooking?
Any insight would be great!
Thanks in advance.
Are you embedding your GA tracking code in your iFrame? To begin with, I don't think you want to do this. But if you want to track the number of clicks, and do this within Google Analytics, I presume you would have to make your link a Redirect and then create a custom event in the redirect.