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
Related
I’m facing a weird result from Facebook Manager by activating a campaign in a new SPA (asynchronous loading) website: only 10% of the FB Link clicks gets a Landing page view result. Same behaviour in Google Analytics, but more results (+/- 40%).
I’m using GTM to push the Facebook pageview tag with the regular pageview pixel script. Triggers used:
Pageview all pages (for each page loaded – new session or page refresh)
History change (navigation in the SPA pages)
List item
When I’m debugging the FB pixel, everything looks to be correctly set up:
GTM preview: I’m seeing the tag fired
ObservePoint + Facebook pixel helper + Chrome DevTools Network: I can see the following Facebook url sent by clicking on a FB ad:
https://www.facebook.com/tr/?id=1111111111&ev=PageView&dl=https://hostname.com/page?param1=1¶m2=2&utm_source=fb&utm_medium=cpc&utm_campaign=xxx | 2022&fbclid=3q2s131qs1d32q132d&rl=&if=false&ts=1656328556245&sw=2048&sh=1152&v=2.9.62&r=stable&ec=0&o=30&it=1656328556200&coo=false&exp=p0&rqm=GET&dt=hi57gjmsg5j527ia92z7j27mmz1of1b9
Other comments:
I also tested to remove the cookie consent blocking trigger in case of huge opt out, but no specific increase of pageviews.
No redirect has been detected in the campaign
Does anyone already encounter this kind of issue?
I have an issue with GTM, Hubspot and ad platform tags. All my tags fire upon GTM submit, even though I have tested and debugged through GTM with the right ad platform tag so I would assume that the issue might not be UTMs, but the referrer parameter, that Hubspot Lps do not sent to GTM debug. Let me explain:
I have Hubspot Lp with Hubspot embedded form ( no manual UTMs, but some Automatic URL append for the Linkedin campaigns).
I have setup a custom event listener for GTM, just like in the below link:
https://codeandtonic.com/blog/how-to-track-hubspot-form-submits-in-google-analytics-with-google-tag-manager-2022
This custom event + custom trigger work perfectly.
I wanted to understand how would GAds tags + Linkedin tags + Facebook tags work with the same custom event trigger ( the one that pulls the form-name when the user successfully submits their details).
So I have created GA tags + Linkedin + Facebook tags that are triggered upon the submit of the form.
However, even though my LP is from insights.companyname.com all tags fire when the user completes the form submission process.
My latest discovery in terms of this tags behaviour is the fact that even though I have appended the utms to the linkedin ad that was running, and I have went trough GTM debug, all tags fire, no matter the UTMS that are appended to the link.
So I would like to know, how I can make only the Linkedin tag fire /only the GAds / only the Facebook tags to fire, while keeping my form submit trigger.
I need to mention that through GTM I cannot track Hubspot embedded forms without custom HTML tag, which, I assume can be customised to understand where does the user come from. Like a source/medium parameter that should be pushed forward in such a way that my tags fire only on the right referer (source/medium). Any help in order to customize this, either by event, by trigger or variables, would be amazing.
Thanks!!
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... :)
I can't imagine this is an uncommon problem, but we keep running into challenges.
We have a campaign with a landing page on our site, with a form visitors can fill out. They give us their email, we email them some content. We want to track this as a single GA conversion.
Right now the setup has three pieces:
1) The campaign landing page on our web site
2) The actual form they fill out, which is in an iframe and hosted on a subdomain (info.MMMM.com instead of www.MMMM.com) (this form is managed and hosted by marketing automation service Pardot)
3) The "Thank You" page to which users are redirected once they fill out the form. This is on the main domain, not the subdomain.
We're using Universal Analytics, I believe. We have the stock UA snippet in the overall site footer, so it already appears on both the landing page and the thank-you page.
We have a cross-domain issues, in that right now info.MMMM.com appears as a high-traffic referrer. Of course this is wrong -- that's our own subdomain, and it's masking the real referrer.
I've been following Pardot's instructions for cross-domain tracking. In doing so, I added our UA code snippet to the code generator for the iframed form. This works, but the Google Tag Assistant then tells me I have two GA tags for the same property (one in the iframe and one in the overall page footer I guess).
Am I headed up the wrong tree? Should I just be following the guidelines for "Cross domain auto linking for forms" on this Google page?
https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain
Any pointers would be helpful.
Thanks,
SGL