Skip to main content

Installing Your Tags with Google Tag Manager

Step-by-step instructions for installing your Minty global and conversion tags via Google Tag Manager, including the required Order Value and Order ID variables. It also covers special cases for CPL clients and creating a purchase trigger.

Before you begin: Make sure you have a Data Layer Variable set up in GTM for the Order Value of a purchase on your site. (The only exception is CPL clients — see Special case: CPL clients below.)

1. Check your variables

  1. Log in to Google Tag Manager and make sure you're on the Workspace tab (not Versions or Admin).

  2. Click Variables in the left menu.

  3. Confirm you have a Data Layer Variable for Order Value (unless you're a CPL client). Ideally you'll also have one for Order ID. If you don't have an Order ID variable, you can use a new Date().getTime().toString() as your Order ID instead (you'll need this in a later step).

  4. Note down the variables you have for later use.

2. Find or create a purchase trigger

  1. Click Triggers in the left menu.

  2. Look for a trigger associated with making a purchase; your team may already use one for another vendor's conversion tag.

    • If you find one, continue to Step 3.

    • If not, have your developer set one up, or create one yourself (see Special case: Setting up a purchase trigger below).

3. Create the Global Tag

  1. Click Tags in the left menu, then click New. Title it Minty Global Site Tag.

  2. Click into the Triggering section and select the All Pages trigger.

  3. Click into the Tag Configuration section and select Custom HTML. The HTML code box and the All Pages trigger should now appear in the tag.

  4. Copy the Global Site Tag from your code.

  5. Paste it into the HTML code box under Tag Configuration.

  6. Click Save in the top-right corner.

4. Create the Conversion Tag

  1. Back on the list of Tags, click New again. Title it Minty Conversion Tag.

  2. Click into the Triggering section and select the trigger that represents a purchase on your site. See Special case: Setting up a purchase trigger if one is not set up

  3. Click into Tag Configuration, select Custom HTML. The HTML box and purchase trigger should populate.

  4. Copy the Conversion Tag from your code and paste it into the HTML box.

  5. Replace VARIABLE1 and VARIABLE2 with the variables you saved earlier. Keep the curly braces and double quotes in place when you swap them in.

    • If you don't have an Order ID Data Layer Variable, use new Date().getTime().toString() as your Order ID.

  6. Click Save in the top-right corner.

5. Publish

  1. Click Submit in the top-right corner of GTM.

  2. Enter Minty Tags Added as the Version Name.

  3. Click Publish. Your changes are now live on your site.

Special case: CPL clients

If you're a CPL (cost-per-lead) client, identify your CPL rate (e.g. "$250/lead"). Use that number as the Order Value and a timestamp as the Order ID.

Follow all the steps above up to the conversion tag. Then, instead of the standard conversion tag:

  • Replace the Order ID variable with new Date().getTime().toString()

  • Replace the Order Value variable with your CPL rate (e.g. 250)

Special case: Setting up a purchase trigger

If you don't already have a purchase trigger, the easiest way to create one is by using your order confirmation page URL.

  1. Find the URL of your order confirmation page (e.g. https://example.com/order-confirmation/12345). Identify the common text that appears on every purchase (e.g. order-confirmation).

  2. Go to Triggers in the left menu and click New. Title it Order Confirmation and choose a trigger type.

  3. Select Page View.

  4. Select Some Page Views, choose Page URL in the left dropdown, and enter the common text.

  5. Click Save.

When you reach Step 4 above (the Conversion Tag), select your new Order Confirmation trigger instead of a "Purchase" trigger.

Need more help? Contact us at [email protected]

Did this answer your question?