← Back home

Install Trackbridge

Drop one async script tag on any site. Replace SITE_KEY with the key from your site's Install tab.

Universal snippet

<script src="https://track.yourdomain.com/p/SITE_KEY.js" async></script>

Shopify

  1. Open Online Store → Themes → Edit code.
  2. Open theme.liquid and paste the snippet above just before </head>.
  3. Save. Visit the storefront and watch the live event feed.

WordPress

  1. Install a header injector plugin (e.g. WPCode).
  2. Paste the snippet into the site-wide header section.

Google Tag Manager

  1. New Tag → Custom HTML, paste the snippet, fire on All Pages.

Raw HTML

Paste before the closing </head> tag.

Firing custom events

The loader exposes window.Trackbridge.track(name, data):

Trackbridge.track("Purchase", {
  value: 49.99,
  currency: "USD",
  transaction_id: "ORD-1234"
});

Declarative tracking

Add data-track="EventName" to any element:

<button data-track="Lead" data-track-value="0">Get a quote</button>