PixelMili

Google Tag Manager

Already using GTM? Import PixelMili's custom tag template and start sending events server-side in minutes — no JavaScript changes to your site required. Your existing GTM triggers, variables, and DataLayer setup carry over unchanged.

What you'll need

  • A GTM container installed on your website.
  • Your PixelMili Tracking ID (e.g. pm_abc123xyz) — found in Settings → Domains.
  • Your Collect Endpoint URL — your tracking domain + /collect (e.g. https://track.yourshop.com/collect).

Step 1 — Download the template

Go to Settings → Integrations and scroll to the Send data to PixelMili section. Click Download .tpl.

This saves pixelmili-tag.tpl to your computer — a standard GTM Custom Tag Template file that you'll import in the next step.

Step 2 — Import into GTM

  1. Open Google Tag Manager and select your container.
  2. In the left sidebar, click Templates.
  3. Under Tag Templates, click New.
  4. In the template editor, click the three-dot menu (⋮) in the top-right corner → Import.
  5. Select the pixelmili-tag.tpl file you downloaded.
  6. Click Save. The template is now available in your container.

Step 3 — Create a tag

  1. Go to Tags → New.
  2. Click Tag Configuration.
  3. Scroll down to the Custom section and select PixelMili — Server-Side Tracking.

Step 4 — Configure the tag

Fill in the two required fields first:

FieldValueWhere to find it
Tracking ID pm_abc123xyz PixelMili → Settings → Domains
Collect Endpoint https://track.yourshop.com/collect Your tracking domain + /collect
Event Name Purchase See event reference below

For purchase or product events, expand the E-commerce Data section and map GTM DataLayer variables to the corresponding fields (see below).

Step 5 — Map DataLayer variables

If your site pushes ecommerce data to the DataLayer (WooCommerce, Shopify, or GA4 ecommerce schema), create GTM Data Layer Variables and plug them into the tag fields:

PixelMili fieldTypical DataLayer keyExample value
Valueecommerce.value2499.00
Currencyecommerce.currencyBDT
Order IDecommerce.transaction_idORD-9999
Product / Content IDsecommerce.items.0.item_idprod_42
Product / Content Nameecommerce.items.0.item_nameBlue Sneakers
Number of Itemsecommerce.items.length2
Emailcustomer.emailbuyer@example.com
Phonecustomer.phone123456789

Step 6 — Set a trigger

Attach a trigger to control when the tag fires. Common setups:

EventTrigger typeCondition
PageViewPage ViewAll Pages
ViewContentCustom EventEvent name: view_item
AddToCartCustom EventEvent name: add_to_cart
InitiateCheckoutCustom EventEvent name: begin_checkout
PurchaseCustom EventEvent name: purchase

Step 7 — Test and publish

  1. Click Preview in GTM to open Tag Assistant.
  2. Visit your website and perform an action (e.g. add to cart).
  3. Confirm the PixelMili — Server-Side Tracking tag appears in the Tags Fired panel.
  4. Open PixelMili → Events live feed and confirm the event arrived.
  5. Once verified, click Submit → Publish in GTM.

Event name reference

Event nameWhen to fireRequired custom fields
PageViewEvery page load—
ViewContentProduct detail pagevalue, currency, content_ids
AddToCartItem added to cartvalue, currency, content_ids, num_items
InitiateCheckoutCheckout page loadvalue, currency
PurchaseOrder confirmation pagevalue, currency, order_id, num_items
LeadForm submit / sign-up—

Custom event names are accepted (max 80 characters). They will appear in PixelMili analytics and be forwarded to platforms that support custom events (Meta, GA4, TikTok).

ESC

Full-text search is coming soon. Use the sidebar for now.