Google Analytics
Configuration
To receive booking module data in Google Analytics, follow these steps:
Make sure you have a Google Tag Manager (GTM) account and a Google Analytics (GA) account.(Yoplanning interacts with Google Tag Manager, which acts as a bridge between various solutions, such as Google Analytics.)
In Yoplannin, modify the desired booking module and enter your GTM ID (in the format GTM-xxx, and not the Google Analytics ID G-xxxx).
Connect GTM to Google Analytics (via a Google Tag triggered on all pages). This will allow us to transmit basic data such as visits and clicks. If you decide to enable e-commerce data flow, we will be able to send the following events: "view_item", "add_to_cart", "begin_checkout" and "purchase" (see event details below).
Details of e-commerce events
We send the following events:
view_item
Triggered when a product detail is clicked. The "item_name" data is sent in the e-commerce data and contains the name of the product in question.
add_to_cart
Triggered when a session or gift voucher (GBV) is added to the cart. The following data is sent:
begin_checkout
Triggered on the last page when the "Pay" button is clicked. The following data is sent:
purchase
Triggered when payment has been made, this event is unique because it depends on the booking module's integration type. There are two possible integrations: either the module is embedded in your site (iframe), or the user accesses the booking module directly (direct access).
Direct access mode
With direct access, the purchase event is triggered automatically at the end of the payment when the user is redirected to the booking module. No configuration is required.
Iframe mode
In iframe, it is necessary to configure a "success URL" from Yoplanning in the booking module configuration. The success URL must meet two conditions:
it is part of the same site where the reservation module has been integrated
the Yoplanning integration script is also loaded on this page
For example, if the booking module is integrated on "example.com" then the success URL must also be on the same domain (e.g. example.com/thank-you). And the Yoplanning integration script is loaded on this page too (even if no booking module is present!).
With this operation, the user will be redirected to your success page at the end of the payment and the "purchase" event will be sent to analytics in the background.
Purchase data
The following data is sent:
Last updated