Analytics profile setup

Mews allows us to check:

  • Universal Analytics

  • Google E-commerce

  • Google Enhanced E-commerce

If you'd like to see your transactions and e-commerce, you only need to set up Google Enhanced E-commerce.

This article will assume that you have connected your Google tag manager account.

If not, please click on the button below

Once done, head to Settings > Services > Bookable services > Choose respective service (e.g. Stay) > Distributor configurations > Specific booking engine > Preview

Head back to your GTM account

Preview mode will allow you to run tests and finalize your set up without actually affecting your booking engine

Now reload your Distributor booking engine, The google tag manager overlay should appear

The triggers that the booking engine supports appear on the left. They react to user's actions on the website.

For a detailed explanation of them click on the button below.

Head to the Distributor Widget > Integrations section, a full explanation of the connection to GTM appears on this page.

On the right-hand side click on Triggers Reference

The list will be at the bottom of the article.

The next section is the Variables

Variables are items contained within each tag

i.e.: The date section contain:

  • start date

  • end date

  • voucher code

The next section is the Data layer

There we can see each specific variable contained within each trigger

The value section to the right gives more detailed information on all items presented for the selected event.

The last Error section will log any error that may occur

Universal analytics

You can now create a new tag in GTM

  • Name the tag Universal analytics

Go ahead and create the Tag configuration:

Select Google analytics: Universal Analytics

Select the following settings:

  • Track Type: Event

  • Google Analytics settings: Select your Google Analytics account
    Note: You must have an Analytics account. Google google analytics in the search bar, use the same account to log in to Analytics

  • Select Website

  • Name your account to be recognisable and easy to link with your GTM account

  • Website name: can match previous name

  • Copy the following from the booking engine URL and copy it in the Website URL field in Analytics.
    Note: If the booking engine has your website's domain, enter the domain of your property/chain

Note: Remove https:// from the URL as Analytics already adds it for you

  • Select an Industry Category

  • Select the Timezone you would like to see the reports in

Data sharing Settings

Only Google products & Services option is mandatory to select.

The rest are optional, select which ones suit you best.

  • Confirm by clicking Get Tracking ID

  • Read & accept the Terms and conditions

Once everything is agreed with, you can copy paste your tracking ID.

  • Head back to GTM and create a New Variable... for Google Analytics settings

  • Paste in the Tracking ID

  • Name the variable Google Analytics

  • Save once this is done

  • Add a Category, for this start typing " {{ "

  • Click the New Variable...

  • Name it eventName (copy it)

  • Click on the pen for the new variable type and select Data Layer Variable

  • Once you click on it, Paste the copied name in the following field:

Note: This field is case sensitive to make sure there are no spaces before or after and the exact same word appears in your field.

  • Go ahead and Save the variable

  • Type " {{ " in the Action field next

  • Click on New variable...

  • Name it hotelName (copy it)

  • Click on the pen

  • Select the Data Layer Variable

  • Paste the name in the variable name field

  • Save the variable and you have completed the set-up for Universal Analytics.


  • Scroll down to the triggering section

  • Click on the pen to create a new trigger

  • Click on the [+] icon at the top-right of the screen

  • Head to the Distributor API documentation to Triggers Reference and copy the following:

  • Name the new variable by pasting the above:

  • Click on the pen, scroll down and select Custom Event:

  • Paste once more in the Event name field:

  • Make sure: This trigger fires on All Custom Events is selected and Save

Check you Set up

Compare your set up with the following screenshot

Enhanced E-commerce setup

  • Click on New

  • Name the tag Enhanced E-commerce

  • Click on the pen to create a new Tag configuration

  • Select Google Analytics: Universal Analytics

  • Track Type is not specific, you can leave it as Pageview

  • Select the same account in the Google Analytics settings field

  • Tick Enable overriding settings in this tag

  • Select More Settings

  • Select True & Use Data Layer as per following screenshot

  • The tag configuration is finished.

  • Scroll down to triggering and create a new one by clicking on the pencil icon

  • Click on the [+] icon in the top-right corner

  • Name the trigger All Mews Events

  • Select New and scroll down to Custom events

  • In the Event name type exactly the following ^distributor:

  • Select Use regex matching
    It will allow you to understand when:
    All triggers and events in your Mews Booking engine
    - Guest arrives in Booking engine
    - Guest completes a booking
    - Guest pays for reservation
    - Guest Drops off the booking
    - Guest exits BE

  • Click Save

  • Check your configuration against the following screenshots:

  • Click on Save

  • Submit the changes you have made

  • Name the changes as Version Name: Mews Setup

  • Add a description if needed:
    Universal Analytics
    Enhanced E-Commerce

  • Select Publish, check the summary of changes

Activate Published changes

In Google analytics head to Admin

  • Select E-commerce Settings

  • Enable both E-commerce and Enhanced E-commerce Reporting

  • Click save

Once this is saved, refresh your BE and you will see the tags should have fired now.

You can check the Data Layer for more information on the fired tags and provided info

Click on the button below for the Next GTM lesson

Did this answer your question?