Skip to main content

Lunio Conversion Tracking (GTM Setup Guide)

This guide will walk you through setting up Lunio conversion tracking on your website using our Google Tag Manager template.

Updated this week

Before You Start

You will need:

  • Access to your Google Tag Manager web container

  • Access to your Lunio dashboard

  • The Lunio mplat script installed on your site (see Step 1)


Step 1) Install the Lunio Mplat Script

The Lunio mplat script must be running on your site before conversion tracking will work. If you have already installed the mplat script, skip to Step 2.


Follow the Lunio mplat installation guide to get your script URL and install it on your site:


Step 2) Import the Lunio Template into GTM

  1. Download the Lunio Conversion Tracking .tpl file provided by your account manager

  2. In GTM, click Templates in the left hand menu

  3. Under Tag Templates, click New

  4. Click the three dot menu (top right) β†’ Import

  5. Upload the .tpl file

  6. Click Save

The template is now available to use when creating tags.


Step 3) Get Your Conversion ID

  1. In Lunio, go to System Settings > Integrations > Conversions

  2. Click Create conversion and configure your conversion

  3. Click Generate, then View in the Script column

  4. Copy the Conversion ID β€” this is the ID value in the script e.g. fff4eea5-079d-44a2-b861-99285cba77b3

Step 4) Create the Conversion Tag in GTM

  1. In GTM, go to Tags β†’ New

  2. Click Tag Configuration

  3. Select Lunio Conversion Tracking from the list (under Custom)

  4. Fill in the fields:

Field

Required

What to enter

Conversion ID

Yes

The ID copied from the Lunio dashboard

Order ID

No

Your GTM order ID variable e.g. {{dlv - order_id}}

The Order ID field is recommended for ecommerce sites as it helps Lunio match conversions to orders. If you have a data layer variable for order ID, map it here.


Step 5) Set Your Trigger

The tag needs to fire when a conversion is completed. For example, on a purchase confirmation page, a form submission success page, or any other event you want to track as a conversion.

  1. Click Triggering in the tag setup

  2. Click the + to add a new trigger

  3. Set up a trigger for your conversion event, for example:

    • Trigger type: Page View

    • Fires on: Page URL contains /order-confirmation

  4. Save the trigger


Step 6) Test and Publish

Test first:

  1. Click Preview in GTM

  2. Enter your website URL and complete a test conversion

  3. Check the GTM Preview panel confirms the Lunio Conversion Tracking tag shows as Fired

  4. Close preview mode

Publish:

  1. Click Submit in GTM

  2. Add a version name e.g. Added Lunio conversion tracking

  3. Click Publish


Notes

  • This template is for web (client-side) GTM containers only

  • For any further help or questions, feel free to reach out to the support team

Did this answer your question?