Google Tag Manager allows users to deploy the Zaius Javascript Tag in a few steps.

If you have implemented Enhanced Ecommerce, please use the guide specifically for it.

Adding the Zaius tag

  • Click "New Tag"
  • Select "Custom HTML"
  • Paste the ZAIUS tag from the integration screen into the box. Find out how to copy your Zaius tag here
  • Choose to Fire On "All Pages"
  • This will initialize the tag and also capture data from every page view

Configure Key Events

You can now add additional "Custom HTML" tags like the ones we recommend below. Your GTM implementation should have triggers and variables configured that can be used define when to fire these tags and what data to put in them.

Tag Sequencing

For any additional tagging after you've initialized your tag, ensure that the "Tag Sequencing" option is set after the Zaius Initialization for any events.

Configure Customer Identification Events

When a customer signs up, logs in, or creates an account, you can add a new "tag" to fire on each of
those events. Below are some recommended calls that we recommend be implemented.

      action: "login",
      customer_id: "{{YOUR_VARIABLE_FOR_CUSTOMER_ID}}",

Configure Product Interactions

Product interactions drive the customer lifecycle within Zaius and are key to many of the metrics and behavioral segmentation we provide. Below are the 3 recommended calls to make

            {action: "detail",
      customer_id: "{{YOUR_VARIABLE_FOR_CUSTOMER_ID}}",
      email:"{{YOUR_VARIABLE_FOR_EMAIL}}",  //note if email is not available do not send it!

Configure Orders

Orders are the mechanism which we track revenue and conversions by, so it's important to send these events in as specified below. Implementing this call should be done from a Custom Javascript Variable and requires implementation of the Ecommerce Data Layer.

The output of the variable should send an event like the following to Zaius

zaius.event("order", {
  action: "purchase",
  customer_id: "zaius-342",
  order: {
    order_id: "OR345",
    total: 109.65,
    discount: 5.00,
    subtotal: 103.00,
    tax: 5.15,
    shipping: 6.50,
    coupon_code: "5OFF",
    items: [
        product_id: "2045",
        price: 19.00,
        quantity: 5,
        discount: 0.00,
        subtotal: 95.00
      }, {
        product_id: "2091",
        price: 10.00,
        quantity: 1,
        discount: 2.00,
        subtotal: 8.00

Remember: You can track anything!

The examples above are common ways to use the product. Our Event and Action schema is totally flexible. So you can send in any value for event and action parameters. For more details visit our Data Overview section.

Did this answer your question?