Custom Loader helps make Google Tag Manager and Google Analytics 4 scripts more resistant to ad blockers and ITPs by modifying gtag.js and gtm.js loading path. Moreover, a Custom Loader and Custom Domain help set first party cookies and prolong cookie lifetime!
1. Log in to your Stape.io account.
2. Choose the container. Click on the Power-ups sections, and next to the Custom Loader, hit the Configure button.
3. Add the following settings for Custom Loader:
Domain - select the necessary domain from the list of domains connected to your container.
Web GTM ID - add web Google Tag Manager ID. Find out how to find web GTM ID in our guide.
Platform - the custom loader code differs for each platform.
3.1 If you select the “Other” platform, you will be given a JavaScript code to use on your website instead of the standard GTM loader.
Note: If you are using apps and plugins developed by Stape, they have fields that allow you to set up a Custom Loader directly within the app/plugin/extension.
We, at Stape, have developed apps, plugins, and extensions for the following platforms:
4. Additional settings:
5. Click “Generate”. You will then be given instructions on how to add a Custom Loader to your site. Please note that just generating it doesn't do anything; you also need to make the necessary changes on the website (add code) or in the Stape applications if you use any.
When adding the Custom Loader to the site, make sure you also remove the standard GTM loader if you have one.
To check if everything works correctly, click the right button on any website page, → Inspect,” and go to the “Network” tab. Then, enter your custom subdomain.
If everything is correct, you should see the Google Tag Manager request URL and Status Code 200 OK, as shown in the screenshot below:
1. Sets 1st party cookies.
2. Prolongs cookie lifetime.
3. Makes GTM and GA4 resistant to AdBlockers and ITPs.
4. Keeps your data tracking intact.
You’ve probably noticed that data about your website users and conversions collected by different analytics tools might vary. Most of the time, you’ll see that the purchase number in Google Analytics is lower than in your CRM. Where this data discrepancy comes from, why is it happening, and how to fix it?
Hosting your server Google Tag Manager on Stape is the best way to set up server-side tagging. Here's why...
Wondering what server-side tagging is and how it works? This blog post will explore all that and more!