Skip to main content
Zenovay
Free6 minutesBeginner

Can I install Zenovay via Google Tag Manager?

Yes. Here's how to load the Zenovay tracker through Google Tag Manager, including how to fire custom events from GTM triggers.

gtmgoogle-tag-managerinstallationtrackingtags
Last updated:

Yes. Google Tag Manager (GTM) is one of the simplest ways to deploy the Zenovay tracker, especially when your site has many other tags and you'd rather not edit theme files.

Steps

  1. Create a Custom HTML tag

    In GTM, go to Tags → New and choose Custom HTML as the tag type. Name it Zenovay Tracker.

  2. Paste the tracker code

    In the HTML field, paste:

    <script
      defer
      src="https://api.zenovay.com/z.js"
      data-tracking-code="YOUR_TRACKING_CODE"
    ></script>
    

    Replace YOUR_TRACKING_CODE with the value from Settings → Tracking Code in your Zenovay dashboard.

  3. Set the trigger

    Under Triggering, choose All Pages (the built-in Initialization - All Pages trigger is also fine and fires earlier in the page load).

  4. Save and publish

    Click Save, then Submit in the GTM workspace, and publish the new container version.

Firing custom events from GTM

You can also push custom events to Zenovay from any GTM trigger — for example, when a button is clicked or a form is submitted.

Create a second Custom HTML tag with the trigger of your choice and paste:

<script>
  if (window.zenovay) {
    zenovay('track', 'cta_click', {
      label: {{Click Text}},
      page: {{Page Path}}
    });
  }
</script>

{{Click Text}} and {{Page Path}} are GTM built-in variables. Wrap them in curly braces so GTM substitutes the runtime value before the script fires.

Where to put the tag in the firing order

If you load the Zenovay tracker via the All Pages trigger and a custom-event tag also fires on the same page, the custom-event tag should fire after the tracker. The simplest way is:

  • Load Zenovay on the Initialization - All Pages trigger (fires earliest).
  • Fire custom events on All Pages, Click, or Form Submit triggers (which fire later).

The if (window.zenovay) guard above prevents the custom-event call from erroring if for any reason the tracker hasn't loaded yet.

If you use GTM's built-in consent mode, mark the Zenovay Tracker tag with the consent type that matches your privacy policy. Because Zenovay runs cookieless by default, in most jurisdictions it does not legally require consent — but routing it through your CMP keeps the audit trail consistent.

Verifying it works

  1. Use GTM's Preview mode to load your site.
  2. Confirm the Zenovay Tracker tag fired (you should see a z.js request in the network panel).
  3. Open your Zenovay dashboard Live tab — your visit should appear within 30 seconds.

Was this article helpful?