Documentation
Google Tag Manager
You can deploy Splitlab through Google Tag Manager (GTM) with a Custom HTML tag.
Steps
- In GTM, create a new Tag → Custom HTML.
- Paste the Splitlab snippet (from the dashboard → Install / SmartCode, or the install snippet) into the HTML field.
- Set the trigger to All Pages.
- Publish the container, then verify the install.
Anti-flicker + GTM
GTM itself loads asynchronously, so anything injected through it runs after the page has started painting. That means the anti-flicker script can't hide the page early enough to fully prevent a flash of the original.
For flash-free experiments, add the install snippet directly to your
page <head> instead. Use GTM only if a brief flicker is acceptable, or if head access isn't
available to you.