Splitlab

Documentation

Google Tag Manager

You can deploy Splitlab through Google Tag Manager (GTM) with a Custom HTML tag.

Steps

  1. In GTM, create a new TagCustom HTML.
  2. Paste the Splitlab snippet (from the dashboard → Install / SmartCode, or the install snippet) into the HTML field.
  3. Set the trigger to All Pages.
  4. 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.