Skip to main content
The Datalyr container can manage a Meta Pixel, Google Tag, TikTok Pixel, external script URL, or inline JavaScript after the Datalyr web install is present.

Add a script

  1. Verify the web SDK in Live or Events.
  2. Open Settings → Container.
  3. Select Add script.
  4. Give it a recognizable name and choose its type.
  5. Enter the pixel ID, tag ID, external HTTPS URL, or inline code.
  6. Save it, then load a test page.
Each saved script can be enabled, edited, or removed. The page also surfaces recorded error counts and the latest error details when execution fails.

Avoid duplicate tags

Before enabling a pixel, inspect your site theme, tag manager, checkout, and other apps. Loading the same base tag twice can duplicate browser events even when server-side conversion delivery is correct. Verify with the browser’s network tools and the destination’s pixel helper. One page load should initialize each intended base tag once. Then perform one test action and confirm one corresponding browser event.

Use custom scripts carefully

External and inline scripts execute on your site. Review their source, pin trusted URLs where possible, and test them outside production first. A broken script can affect page performance or behavior.
Container delivery does not grant consent. Only enable advertising or analytics scripts when your consent policy permits them.