Stape/Documentation

Custom Loader power-up

Updated Mar 20, 2026

Overview

Use Custom Loader to minimize the impact of ad blockers on your Google Tag Manager (GTM) and Google Analytics 4 (GA4) scripts.

Benefits of Custom Loader

  • Privacy regulations compliance - turns all cookies into first-party cookies by modifying gtag.js and gtm.js loading path.
  • More reliable and complete data - makes GTM and GA4 scripts resistant to ad blockers.

How to set up the Custom Loader power-up

2. Select your sGTM container on the dashboard.

sGTM containers

3. Click Power-ups, then click the “Use” button next to the Custom Loader panel.

Power-ups section in Stape account

4. Toggle the Custom Loader switch.

Turn on Custom Loader

5. Configure Custom Loader with the following settings:

  • Domain - choose one of the domains linked to your container. 
  • Web GTM ID - paste your web Google Tag Manager ID.
  • Enhanced ad blocker protection - when this option is enabled, all your requests to the server sGTM will be encrypted so that ad blockers cannot block them based on request patterns.
  • Same Origin Path - If you have the same origin configured, specify the path used, and both GTM and GTAG JS will be loaded via the same origin. Learn more about the same-origin approach for server GTM here.
  • Platform - the web GTM code differs for each eCommerce platform. If you are using Stape applications for CMS, select the platform from the list. Otherwise, select the “Other” option to generate a JS snippet. You can find out more about Stape Conversion Tracking apps for CMS on our page.
Custom Loader configuration screen

Test the setup of Custom Loader

To check if everything works correctly, right-click on any website page → click Inspect → open the Network tab. Then, enter your custom subdomain or the same origin path if used. 

If everything is correct, you should see the Google Tag Manager request URL and “200 OK” Status Code.

Below is an example of encrypting the GA4 request with the active Custom Loader and enhanced ad blocker protection toggle:

With a loader example

And here is what it looks like without the Custom Loader and without enhanced ad blocker protection configured:

Example without Loader

Comments

Can’t find what you are looking for?