Cross-domain conversion tracking
-
Hello, thanks for this nice plugin!
I’d like to send my Google Ads to https://www.mysite.com
https://www.mysite.com contains links to https://shop.mysite.com
WooCommerce, checkout and payment is on https://shop.mysite.com
So conversion tracking informations should travel from Google Ads, to https://www.mysite.com, to https://shop.mysite.com
Your plugin is already installed on https://shop.mysite.com and working well
I found this documentation :
https://support.google.com/searchads/answer/9165554?hl=enAnything to know to use this with your plugin?
Should I install your plugin on https://www.mysite.com too ?
Many thanks for your help!
-
This topic was modified 4 years, 10 months ago by
Doobeedoo.
-
This topic was modified 4 years, 10 months ago by
-
Hi @doobeedoo
Interesting question. The current version doesn’t offer support for setting the linker like described in the article. It will need some additional coding. I’ll add it to the next version, which I’ll probably publish next week.
If you are a subscriber of the premium version I can provide it even earlier through our beta program.
I’ve added a filter to the plugin, which will enable to fully configure the cross domain linker. Head over to the documentation to see how to do it.
(The filter needs to be added to the functions.php file of the child theme).
The new filter will be rolled out with the next version of the plugin next week.
Should I install your plugin on https://www.mysite.com too ?
The domain linker settings need to be added to that domain too. It is up to you if you do this with some custom coding, or enabling it in your current Google setup.
If it’s more convenient to you, you can also install our plugin on that domain and also configure the filter there. But, you will have to install WooCommerce, since our plugin checks if WC is active before running.
-
This reply was modified 4 years, 10 months ago by
alekv.
Hi Alek,
Many thanks for this!
I found this explanation: https://www.directom.com/google-analytics-subdomain-tracking/
Cross-domain tracking is different from cross-subdomain
Cross-domain tracking is needed only if domains are totally different. If you are tracking the visitor across the subdomain of the same domain, you don’t need cross-domain tracking.
Just go to your Google Tag Manager container, open Google Analytics Settings Variable that is used by your GA tags and set Cookie Domain to auto. By default, all GA Settings Variables have it enabled.
That’s it. There is no need to implement GA cross domain tracking for subdomains. Better spend your time somewhere else.
Also, make sure that you are using the same GA property across all subdomains.
BTW this links does not work:
https://docs.woopt.com/wgact/#/filters?id=cross-domain-linker-settings-for-googleCross-domain tracking is needed only if domains are totally different. If you are tracking the visitor across the subdomain of the same domain, you don’t need cross-domain tracking.
Oh yes, that’s true. Didn’t think about that. First party cookies are always valid for the domain and all subdomains. So cross-domain tracking doesn’t need be be set up.
But I still have to thank you. Soon my plugin will offer the setting for the cross-domain linker. So that’s good.
Regarding the documentation link. Sometimes it doesn’t work. I haven’t figured out what’s causing this. It works fine for me: https://take.ms/COJjOv
What kind of error do you see?
Could you try with a different browser?This link:
https://docs.woopt.com/wgact/#/filters?id=cross-domain-linker-settings-for-googleWorks in another browser (Firefox), but not in Chrome, even after a hard refresh O_o
To continue with the setup:
I just matched my 2 websites https://www.site.com and https://shop.site.com to use both their own GA3 + GA4 included with each their own Google Tag Manager, snippet inserted by Site Kit by Google (Google plugin for WordPress)
So I removed the value in your plugin settings in “UA …”:
https://ibb.co/S7PsNQgDid I do right ?
Is it a good setup ?
https://www.site.com has his own Analytics GA3 and GA4 both included in “www.site.com” Tag Manager
Site Kit inserts Google Tag Manager snippet in websitehttps://shop.site.com has his own Analytics GA3 and GA4 both included in “shop.site.com” Tag Manager
Site Kit inserts Google Tag Manager snippet in website
Your plugin is installed on this website only
In your plugin settings I fill fields “Google Ads Conversion ID” and “Google Ads Conversion Label”Many thanks
I wouldn’t recommend using Site Kit on the website where you are using my plugin, since both are inserting kind of the same base scripts. Also Site Kit has broken the scripts of my plugin on at least one other website.
Also I don’t know how well Site Kit is optimized for WooCommerce. My plugin is.
You can keep Site Kit on the https://www.site.com though.
Got it, thanks
I could keep Google Site Kit to have the Analytics infos in WP dashboard, but deactivating the snippets, is it ok ?
https://ibb.co/wYYZnCJBut your plugin does not offer to include Google Tag Manager ? There are only fields for GA3 and GA4, no GTAG
https://ibb.co/6RMs9SCI just spent so much time to setup Google Tag ^^;
I could keep Google Site Kit to have the Analytics infos in WP dashboard, but deactivating the snippets, is it ok ?
It looks like that would work.
But your plugin does not offer to include Google Tag Manager ?
Yes. I’m still unsure if I’m ever going to support GTM in my plugin. There are pros and cons for this.
What would you need GTM for? If something specific is missing in my plugin that you’re solving with GTM I could build that feature into my plugin (as long as it makes sense for the purpose of my plugin).
For cross-domain tracking, I read “both domains need to use GTAG” ?
But it seems for subdomain-tracking, this is not neededI changed my setup to this:
https://www.site.com GA3 and GA4 in GTAG, snippet included by Site Kit with GTAG
https://shop.site.com use the same GA3 and GA4 as https://www.site.com, but no GTAG, GA snippets included with your pluginNow trying to display my ad on Google to test cross subdomain conversions with no success 🙂
gtagneeds to be present on all pages that need to be tracked.My plugin is also injecting
gtagon every page of the entire WooCommerce shop.Only the configuration for the
gtagneeds additional settings when dealing with different domains. As you correctly noticed earlier, it is not necessary to add the linker instruction when dealing with subdomains.-
This reply was modified 4 years, 10 months ago by
alekv.
Thanks for everything
@doobeedoo thanks for sharing this topic with the Site Kit team.
I wouldn’t recommend using Site Kit on the website where you are using my plugin, since both are inserting kind of the same base scripts. Also Site Kit has broken the scripts of my plugin on at least one other website.
@alekv this is Abdullah from Site Kit team. Can you please specify what exactly the issue with the Site Kit as Site Kit doesn’t alter any Analytics script. We’d love to test your plugin with Site Kit.
Best Regards,
In that particular case I came across the tags inserted by my plugin didn’t fire while Site Kit was enabled. Once the user disabled Site Kit, the tags did fire. (we narrowed it down to Site Kit. It was really exactly as I explain. Site Kit enabled, tags don’t fire, Site Kit disabled, tags fire)
There was no error in the dev console that could have helped in debugging this.
And since the user didn’t really have a use for Site Kit after installing my plugin, we left it as is without further investigating it.
Hello @alekv ,
I hope you are doing well.
By configuring WooCommerce Conversion Tracking plugin with the Woo Installation I didn’t observe any kind of script breakage while setting up Site Kit.
It’d be great if you can let us know any use-cases or any live website where we can see the issue.
Best Regards,
At the moment I don’t know of any websites where this problem occurs. If I come across another one I’ll make sure to let you know.
-
This reply was modified 4 years, 10 months ago by
The topic ‘Cross-domain conversion tracking’ is closed to new replies.