Google Tag Manager

We'll go through the steps to create a Google Tag Manager (GTM) account so you can setup other tools such as Facebook Pixels and Google Analytics on our whitelabel solution.

Create your account 

First, you need an account! Head to https://tagmanager.google.com, log into your Google account and click on Create Account.



In the section Account Setup, choose a name for your account and select your country.
In the section Container Setup, enter your booking site URL (ex.: montvr.getmidori.com) and select Web as your Target platform then click Create



After reading and agreeing to the Terms of Service Agreement, you will be redirected to your dashboard. As soon as you get there, a popup will appear with some code. Since this code is already integrated in our system, you can ignore it for now.

Copy the ID that looks like GTM-ABC123ABC on top of the dashboard and send it to us at support@getmidori.com so we can do the setup on our side.

Configuring triggers 

We now need to associate triggers with every event that we want to track. Right now, Midori supports the following events:


  • PageView – Occurs when a user visits the website

  • AddToCart – Occurs when a user selects a timeslot for a service

  • RemoveFromCart – Occurs when a user unselects a timeslot for a service

  • Checkout – Sent in two steps:

    • Step 1: When the user finishes entering his customer information

    • Step 2: When the user starts entering his credit card information

  • Purchase – Occurs when the transaction succeeds 

 

We need to create a trigger for each of them, except PageView which is built in. To do that, click on Triggers in the left menu. For each of the events that you want to track, click on New. You will first have to name your trigger, then click on the icon to begin the setup.


For each trigger, choose the type Custom Event




Then enter the Event name (mentioned above). Select Some Custom Events then add the condition "Event equals Event name".

You are now ready to link your events to Google Analytics and/or Facebook Pixel

Publishing your Container
You must do this after every changes.

This step is the easiest! When you’re all done with your configuration (and every time you modify something in Tag Manager), you need to publish it to start dispatching the events.


Click on Submit on the top right, and a popup will open.

None of the fields are mandatory, but you can name your Version and give it a description if you want. When you’re done, click on Publish. If you haven’t set a version name, Google will prompt you again to suggest you enter one. Ignore it and click on Skip or Continue. 




All done! If your Google Tag Manager ID is set on our side, then the data should now start appearing in Facebook Pixel and/or Google Analytics!