Skip to main content
When you finish, a third-party tag loads through your existing Datalyr snippet, with no second tag to install and no theme edit.

Before you start

  • You must have the owner or admin role.
  • dl.js must already run on the site. Confirm a pageview in Live first.
  • Work in Settings → Pixels & scripts. Every instruction below uses that nav label.

The five script types

Every script fires on page load. There is no other trigger.

Add a script

  1. Open Settings → Pixels & scripts.
  2. Select add script.
  3. Enter a Name you will recognize later.
  4. Choose the Type.
  5. Enter the pixel ID, tag ID, URL, or code.
  6. Select add script in the dialog.
  7. Load a page on your site.
Pick the type carefully. It’s fixed once you save, so switching means removing the row and adding a new one.

Manage a row

A row that has thrown shows an {n} err badge with the error count.

Avoid double-counting

Do not add a pixel here when your theme, tag manager, checkout, or another app already loads it. Two base tags on one page send two browser events, and the ad platform counts the conversion twice. Check first:
  1. Open your site with the browser network panel visible.
  2. Filter for the pixel’s own domain, such as connect.facebook.net.
  3. Confirm exactly one request initializes the base tag.

Use an external or inline script safely

An external or inline script runs with full access to your pages, including checkout. A hostile or broken one can read form fields, break a purchase, or slow every page. Review the source and test outside production first.

Verify

  1. Save the script.
  2. Load a page in a private window.
  3. Open the browser network panel.
  4. Confirm the tag’s own request fires exactly once.
  5. Open the destination’s pixel helper and confirm it sees one event.

When it does not work

Next