Google Analytics
Configuration
To receive data from the booking module 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.)
Go to your Team configuration page in Yoplanning 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 basic data such as visits and clicks to be transmitted. If you decide to enable e-commerce data flow then we will be able to send the following events: "view_item", "add_to_cart", "begin_checkout" and "purchase" (see the details of the events below).
Details of e-commerce events
We send the following events:
view_item
Triggered when clicking on a product detail. 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 (BC) 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 the payment has been made, this event is special because it depends on the type of integration of the booking module. There are two possible integrations: either the module is integrated into your site (iframe), or the user directly accesses the booking module (direct access).
Direct access mode
In direct access, the purchase event is triggered automatically at the end of the payment when the user is redirected to the reservation 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 (eg: 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