Install Admaxxer with GTM

Install Admaxxer with Google Tag Manager

4 min read • install

Admaxxer is a DTC analytics platform with built-in Meta + Google ad ops. Installing via Google Tag Manager is the fastest path when you do not control the template code or when marketing owns the deploy cadence. TL;DR: add a Custom HTML tag with the Admaxxer loader on All Pages, add a second Custom HTML tag that fires on your purchase event with admaxxer.track('purchase', {...}), validate in GTM Preview, then publish the container.

Symptoms

Use GTM when:

Root cause

Admaxxer's loader is a single <script> tag that registers a global window.admaxxer object and starts autocapturing pageviews. GTM's Custom HTML tag wraps that loader and fires it on the triggers you choose. Ecommerce events like purchase are then surfaced via a second Custom HTML tag that reads the dataLayer and calls admaxxer.track(...).

Fix

Step 1: Create the loader tag

In GTM -> Tags -> New -> Tag Configuration -> Custom HTML. Paste the Admaxxer loader snippet from Admaxxer -> Settings -> Install -> Copy loader. It looks roughly like:

<script>
  (function(a,d,m,x,r){a[x]=a[x]||function(){(a[x].q=a[x].q||[]).push(arguments)};
  r=d.createElement(m);r.async=1;r.src='https://admaxxer.com/script.js';
  d.head.appendChild(r)})(window,document,'script','admaxxer');
  admaxxer('init', 'PUBLIC_WEBSITE_ID');
</script>

Replace PUBLIC_WEBSITE_ID with the id on the Admaxxer install page.

Step 2: Set the trigger to All Pages

Pick the built-in "All Pages" trigger. The loader autocaptures pageviews, including SPA history changes on most stacks.

Step 3: Create the purchase trigger

Triggers -> New -> Custom Event. Set the event name to match your dataLayer purchase event (commonly purchase for GA4 ecommerce). Save it.

Step 4: Create the purchase tag

Tags -> New -> Custom HTML. Paste something like:

<script>
  admaxxer('track', 'purchase', {
    value: {{DLV - ecommerce.value}},
    currency: {{DLV - ecommerce.currency}},
    order_id: {{DLV - ecommerce.transaction_id}}
  });
</script>

Bind the trigger to the purchase Custom Event trigger from Step 3.

Step 5: Validate in Preview

Click "Preview" in GTM, browse your site, trigger a test purchase. Watch the Tag Assistant panel: both tags should show "Fired" on the purchase event.

Step 6: Publish

When Preview looks clean, click "Submit" in GTM and publish the version with a readable description like "Admaxxer loader + purchase v1". Add a workspace notification so the marketing channel sees when the change goes live.

Step 7: Set tag sequencing

If you also fire Meta Pixel or GA4 through GTM, put the Admaxxer loader in the same tag sequence bucket. That way, if one vendor script throws, the others still fire. GTM's tag sequencing config is under Advanced Settings on each tag.

Verify the fix

Prevent it next time

Related guides

FAQs

Q: Do I have to use Custom HTML or is there a GTM template? A: Admaxxer ships a community GTM template. If it is available in your workspace, prefer it — the Custom HTML approach is a reliable fallback.

Q: Can I install only on specific pages? A: Yes. Change the trigger from All Pages to a Page View trigger with a URL filter. Keep in mind attribution gets fuzzy if pageviews are only partially tracked.

Q: Does GTM install impact Core Web Vitals? A: The loader is async and the tracker is small, so impact is minimal. If you are LCP-sensitive, keep the loader as the only synchronous piece.

Frequently Asked Questions

Do I have to use Custom HTML or is there a GTM template?

Admaxxer ships a community GTM template. If it is available in your workspace, prefer it — the Custom HTML approach is a reliable fallback.

Can I install only on specific pages?

Yes. Change the trigger from All Pages to a Page View trigger with a URL filter. Partial tracking makes attribution fuzzy.

Does GTM install impact Core Web Vitals?

The loader is async and the tracker is small, so impact is minimal. If you are LCP-sensitive, keep the loader as the only synchronous piece.

Put This Knowledge Into Action

Bring Meta and Google ads into one self-hosted workspace.

Get Started Free