Documentation

Tagify Documentation

Everything you need to set up a Tagify Gateway workspace, deploy an sGTM container, point your custom domain, and start streaming first-party events to Meta, GA4, TikTok and Snapchat.

Introduction

Tagify gives you two complementary products under one dashboard:

Tagify Gateway

Drop in one script, fire Tagify('track', …) calls — we fan events out to Meta CAPI, TikTok, Snapchat and GA4 from your first-party domain.

Tagify sGTM

Fully managed Google Server-Side GTM. Paste your container config, attach a custom domain, enable the stealth Custom Loader.

Which one should I use?

  • Gateway — fastest path. No GTM knowledge needed. Best for stores that want Meta/TikTok/Snapchat/GA4 server-side without learning sGTM.
  • sGTM — full control with Google Tag Manager templates. Best if you already work in GTM web + server containers.
  • You can run both at the same time — for example, Gateway for ad platforms and sGTM for your GA4 / Google Ads tagging.

Create an account

Sign up at /signup, verify your email, then open the dashboard. From the left nav you'll see Gateway and Containers — the two flows the rest of these docs cover.

Tagify Gateway

1. Create a Gateway workspace

In the dashboard go to Gateway → New Gateway. Give it a name (e.g. main-store). When it's created you'll see two values you'll need:

  • Pixel Key — identifies your workspace
  • Tracking Domain — defaults to app.tagify.top until you attach your own custom domain

2. Install on a custom website

Open your Gateway and click Install → Custom Website. The snippet has your real pixelKey and trackingDomain pre-filled. Paste it into <head> on every page (or in GTM as a Custom HTML tag firing on All Pages).

html
<script>
(function(w, d, s, src, config) {
  w.TagifyConfig = config;
  w.Tagify = w.Tagify || function() { (w.Tagify.q = w.Tagify.q || []).push(arguments) };
  var f = d.getElementsByTagName(s)[0], j = d.createElement(s);
  j.async = true; j.src = src; f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'https://{trackingDomain}/tagify.js', {
  pixelKey: '{pixelKey}',
  endpoint: 'https://{trackingDomain}/v1/e'
});
Tagify('track', 'page_view');
</script>

This loads tagify.js, initialises the queue, and fires page_view on every page. Any Tagify('track', …) calls made before the script finishes loading are queued and replayed.

3. Shopify pixel install

For Shopify, open your Gateway and click Install → Shopify Pixel. Copy the full pixel script and paste it into Shopify Admin → Customer events → Add custom pixel. The script subscribes to checkout_completed, product_added_to_cart and the other standard Shopify Analytics events automatically. Klaviyo lead capture is included as an optional block at the bottom.

3b. WordPress & WooCommerce install

We ship an official Tagify WordPress plugin that installs the Gateway snippet and auto-tracks WooCommerce events — no theme edits, no code.

  1. Open your Gateway and click Install → WordPress. Download the tagify.zip plugin file.
  2. In WP Admin go to Plugins → Add New → Upload Plugin, choose the zip, install and activate.
  3. Open Settings → Tagify, paste your Pixel Key and Tracking Domain (both shown in your Gateway workspace), then save.

That's it. The plugin injects the Gateway loader site-wide and, if WooCommerce is detected, automatically fires view_item, add_to_cart, begin_checkout and purchase with the right user_data and ecommerce payload.

Need a custom event from a WordPress page or block? Just call Tagify('track', '<event_name>', { … }) from any Custom HTML block — the loader is already on the page.

4. Track events

Once the snippet is loaded, fire events with Tagify('track', '<event_name>', payload). The same payload is forwarded to every configured receiver. Payload shape:

  • user_data — identifiers (email, phone, name, address, click IDs). Hashed automatically before send.
  • ecommerce — transaction-level fields (transaction_id, value, currency, items[]).
  • custom_data — anything else you want to forward (search term, video title, plan name…).

Purchase

js
Tagify('track', 'purchase', {
  user_data: {
    em: 'customer@example.com',
    ph: '1234567890',
    fn: 'John', ln: 'Doe',
    ct: 'New York', st: 'NY',
    zp: '10001', country: 'US'
  },
  ecommerce: {
    transaction_id: 'ORDER_98765',
    value: 99.98,
    currency: 'USD',
    items: [
      { item_id: 'PROD_001', price: 49.99, quantity: 1 },
      { item_id: 'PROD_002', price: 49.99, quantity: 1 }
    ]
  }
});

Lead

js
Tagify('track', 'generate_lead', {
  user_data: { em: 'lead@example.com', ph: '1234567890' },
  custom_data: { lead_type: 'newsletter', source: 'footer' }
});

Custom events

Anything that isn't a standard event becomes a custom event — pass your own event_name (lowercase, snake_case) and put your fields under custom_data. You can mix user_data in to keep match quality high.

js
Tagify('track', 'watched_video', {
  custom_data: {
    video_title: 'Product Demo',
    watch_percent: 75,
    player_type: 'youtube'
  }
});

Custom events are forwarded to every receiver that accepts them (Meta CAPI & TikTok Events API map them as Custom events; GA4 receives them as regular events with the same name). For the full list of standard event names, see the event reference below.

5. Configure receivers

Inside your Gateway, open the Receivers section and toggle on the destinations you want. For each one provide:

  • Meta Conversions API — Pixel ID + Access Token (+ optional Test Event Code)
  • TikTok Events API — Pixel ID + Access Token (+ optional Test Event Code)
  • Snapchat Conversions API — Pixel ID + Access Token
  • Google Analytics 4 — Measurement ID + API Secret

Click Save. Events fired by your snippet immediately start fanning out to every saved receiver.

6. Custom domain & DNS (Gateway)

Pick an obscure subdomain. Browsers and ad-blockers (uBlock, Brave, AdGuard) actively block hosts with tracking-related words. Avoid track, sgtm, gtm, gtag, analytics, metrics, pixel, ads, tracking. Prefer short, neutral hosts like c.yourdomain.com, s.yourdomain.com, link.yourdomain.com, hub.yourdomain.com or edge.yourdomain.com.

In your Gateway settings, enter a subdomain like c.yourdomain.com and save. Then create the DNS record:

text
CNAME  c.yourdomain.com  →  app.tagify.top

Click Verify DNS. Verification typically completes in 1–5 minutes; the dashboard polls automatically. Once verified, swap the trackingDomain in your install snippet to your new custom domain. TLS is issued automatically.

Tagify sGTM

1. Deploy a container

Go to Containers → New Container and fill in:

  • Name — any friendly label
  • Container Config String — the Base64 config from your GTM Server container (GTM web UI → Admin → Container Settings)
  • Region — US East, US West, EU West, or Asia Pacific

Click Deploy. The status starts as Provisioning and flips to Active automatically when the tagging server is ready — usually within 30–60 seconds.

2. Container settings

Open the container to see:

  • Container Identifier — your unique random subdomain
  • Tagging Server URL — https://<identifier>.tagify.top (or your custom domain once active)
  • API Key — used by the GTM Server preview/debug mode
  • Requests Used / Limit — your plan's monthly quota

3. Custom domain & DNS (sGTM)

In the container's Custom Domain card, enter an obscure subdomain like s.yourdomain.com (avoid sgtm, gtm, analytics — they get blocked) and save. Then create:

text
CNAME  s.yourdomain.com  →  <your-container-identifier>.tagify.top

The dashboard auto-polls DNS every 30 seconds (5 attempts). You can also press Check DNS to verify manually. When the badge turns Active, set this domain as the Server container URL inside your GTM web container so your tags start using it.

4. Power-Ups — Stealth Custom Loader

Inside the container, switch to the Power-Ups tab and open Custom Loader. This serves a stealth, first-party loader file (<random>.min.js) so that GTM survives Brave, uBlock and Safari ITP. Paste your GTM Web Container ID (format GTM-XXXXXXX) and click Save & Generate Code.

Replace your existing Google Tag Manager snippet on every page with the two snippets below (your saved version inside the dashboard already has the placeholders filled in).

Head snippet

html
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s);j.async=true;j.src='https://{taggingDomain}/{loaderIdentifier}.min.js?'+i;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','tgfy={encodedId}');</script>

Body snippet (right after <body>)

html
<noscript>
  <iframe src="https://{taggingDomain}/ns.html?id=GTM-XXXXXXX"
    height="0" width="0"
    style="display:none;visibility:hidden"></iframe>
</noscript>

Custom Domains — DNS reference

Choosing a subdomain

Use short, obscure hostnames so browsers and ad-blockers don't filter your traffic. Avoid track, sgtm, gtm, gtag, analytics, metrics, pixel, ads, tracking, tag. Good examples: c, s, e, link, hub, edge, api.

CNAME for Gateway

text
Type   Host                Target
CNAME  c.yourdomain.com    app.tagify.top

CNAME for sGTM

text
Type   Host                Target
CNAME  s.yourdomain.com    <your-container-identifier>.tagify.top

Multi-domain system Pro

Pro plans can attach up to 3 verified custom domains to a single Gateway or sGTM container. Each domain points at the same workspace, so events from c.brandA.com, c.brandB.com and c.brandC.com all land in one place — perfect for multi-brand, multi-region, or staging-vs-production setups.

  • Add each domain in Gateway → Tracking Domain or Container → Custom Domain, one CNAME each.
  • In the Custom Loader install snippet you can switch which verified domain is used per website.
  • All verified domains stay active simultaneously — no need to choose a primary.

Troubleshooting

  • Use a "host-only" CNAME (e.g. c), not the apex of your domain.
  • Disable proxying (orange cloud) in Cloudflare during verification, then re-enable after Active.
  • DNS can take up to 30 minutes globally. If Check DNS fails, wait and retry.
  • Quick test from your terminal: dig CNAME c.yourdomain.com +short.

Gateway event reference

Event nameUse case
page_viewDefault page load
view_itemProduct page view
add_to_cartItem added
view_cartCart page
begin_checkoutCheckout started
add_shipping_infoShipping submitted
add_payment_infoPayment submitted
purchaseOrder placed
searchOn-site search submitted
sign_upAccount created
generate_leadForm / lead capture

Need help?

Our team replies within a few hours, every business day.