Setting up cross domain tracking is one of more advanced topics and even more so when using Google Tag Manager.
The GTM container attached below (see Video 3) does all of the heavy lifting for you but if you do not have an advanced understanding then troubleshooting issues is going to be challenging. So please do NOT rush through the steps below.
NOTE: Please be sure to check for “Common Mistakes” section towards the end of this article.
Please see this article for technical details:
https://www.simoahava.com/analytics/cookieless-tracking-cross-site-iframes/
Video 1: Introduction
Video 2: Steps 1 and 2
Video 3: Importing GTM Container
Note: We are already updating our Container to support GA4.
You can download and refer to the link below. It should be updated soon to support Google Ads Conversion
https://www.leadshook.com/help/using-leadshook-with-google-tag-manager-google-analytics-4/
However if you want to use the OLD GTM, which has the Google Conversion you can download the container below.
Download OLD Google Tag Manager Container for Google Ad conversion purposes
Video 4: Updating GTM Variables
Video 5: Google Analytics Referrals Exclusion List
Video 6: Install GTM Inside LeadsHook
Video 7: Testing
2nd October 2020: Video 2 – How to Verify and Confirm Your GTM Container is Working…
Below is a summary for all of the things that needs to be done based from all of the videos above. You can also use this to troubleshoot any GTM issues.
- Import Leadshook Container
- Update Variables (Google Analytics Tracking which is the UA-ID, FaceBook Pixel ID etc. .)
- Update Variable = Your domain (Include www if domain resolves with www. Do not add https://)
- Update Variable = Subdomain (Use LeadsHook subdomain “yoursubdomain.leadshook.io”. Do not add https://)
- Update Triggers = All Pages Parent Domain ( Needs to be the same as your Domain variable)
- Update Referal Excusion via Google Analytics setting (LeadsHook Subdomain, Website Domain w/ www and also Website domain w/o www) Don’t add https://.
- Paste GTM codes above head and above body within LeadsHook and External site.
Common Mistakes
Mistake #1: Not Updating “All Pages Parent Domain” Trigger
While in most cases you can add variables, when using Page Hostname, variables don’t seem to work. So please manually update your domain as shown below…

Mistake #2: Universal Analytics Tag does not contain cookieFlags custom field
Please ensure you are using the latest GTM container. The most current container should have this additional custom field in the “Universal Analytics” tag
cookieFlags samesite=none;secure

Mistake #3: GTM top Origins Variable should be the same as your Domain Variable
Please make sure you supply information on your GTM top Origins and GTM origins Variable.
By default it should be using your Domain Value, but it would be better to manually change it, and take note there are two values
“http://{{Your Domain}},https://{{Your Domain}}”
It’s an http version beside https separated with a comma.
Pingback: How to Setup Google Tag Manager Without a Direct Integration | LeadsHook Knowledge Base
Pingback: How to Manually Install a GTM container | LeadsHook Knowledge Base
Pingback: GTM Custom Events | LeadsHook Knowledge Base