E-commerce Tracking
The Google Tag Manager simplifies the integration of Google Analytics. With Google Analytics, you can not only measure revenue and conversions but also understand how users interact with your website, how they arrived there, and how to convert them into regular visitors.
This guide explains in detail how to utilize cross-domain tracking. Since even minor deviations in the setup can impair functionality, we recommend strictly adhering to the following step-by-step instructions. The container, which can be imported later, may be edited, but this also carries the risk that cross-domain tracking may no longer be possible.
Required Settings
-
Create a Google Analytics account (if you don't have one yet). You can find help here at Google Analytics.
-
In your Google Analytics account, create a new data stream for your website (if not already present) and add the domains app2.edoobox.com and edoobox.com to the data stream.
-
Enter the Google Analytics Measurement ID in edoobox.
-
Create a Google Tag Manager account on Google (if you don't have one yet).
-
Enter your Google Tag Manager Container ID in the edoobox settings.
-
Import the JSON file into Google Tag Manager and publish it.
1. Create a Google Analytics Account
If you do not yet have a Google Analytics account, create one on Google Analytics. Enter an account name, the website name, and the URL. Data sharing settings can be configured as needed. Then click «Get Tracking ID».
2. Register a New Data Stream in Your Google Analytics Account
Under «Data Streams», click «Add stream» and register a new web stream for your website, if one has not already been configured.
To ensure that tracking also accepts visits from the edoobox domain, these must be added under "Edit Tag Settings" > "Configure Domains."
Add all domain addresses and save them:
app2.edoobox.com | edoobox.com | your-domain.com, etc.
Now, copy the Measurement ID from your stream to your clipboard. The Measurement ID can be found in the upper right corner of your stream. It typically starts with G-XXXXXX.
3. Insert Google Analytics Measurement ID into edoobox
Enter the measurement ID in the designated field in the "Google & E-Commerce" section of your edoobox settings.
4. Create a Google Tag Manager Account
If you do not yet have a Google Tag Manager account, you can create one on the official website.
First, a new account should be created under «Admin». If you already have an account, this step can be skipped. We recommend using the same container as on the main page to avoid conflicts between containers.
We recommend choosing a clear and descriptive account name (e.g., your company's name). You can use one account for multiple websites/clients, as a separate container can be created for each website/client.
You can leave the «Share data anonymously with Google and others» option inactive or activate it.
If you wish to manage multiple websites/clients with the same account, it is advisable to use the domain as the container name, as this is unique and traceable. Select where the container will be used: Web, iOS, or Android, then click «Create». For use with edoobox, select Web.
5. Insert Google Tag Manager Container ID into edoobox
Copy the newly created Container ID GTM-XXXXXX to your clipboard. You can find the Container ID in your Google Tag Manager account under the Accounts > Containers tab.
Insert the Container ID into the designated field B within your edoobox settings, under the «Google & E-Commerce» section.
6. Import JSON File into Tag Manager
Once everything has been saved, the JSON file can be exported from edoobox.
This file can be imported into Google Tag Manager under the «ADMIN» tab. Select the desired Google Tag Manager, account, and container, then click «Import Container».
Select the exported JSON file, leave «Overwrite» active > «Continue» > «Confirm»
Then «submit» the container > «publish» > Done!
Available events sent to Google Analytics
view_item_list: This event occurs when the user views an overview page. The "item_list_name" corresponds to the category path, with individual categories separated by a ">".
view_item: This occurs when the user views the details of an offer.
view_edoobox_*: Various steps in the booking process (templates in Design Manager) are captured by events using this pattern.
-
pricecategoryPrice Categories Template -
deliverablesAdditional Services Template -
userformParticipant Form Template -
multiofferMulti-Offer Template -
dateDates Template -
overviewSummary Overview Template
purchase: On this page, the purchase is confirmed and reported as a conversion.
The following events are available.
-
purchaseNormal booking completed (Standard) -
purchase_mustpayBooking in MustPay status -
purchase_waitinglistBooking in waiting list mode
Cookie Banner Tracking Example
The following example demonstrates how cookie banner events can be implemented using edoobox and Google Tag Manager.
First, create a new variable named edCookieApproved, with the variable type Custom JavaScript.
edCookieApproved create
Insert the following code:
function() {
if (typeof window.edCookieApproved === 'undefined') {
window.edCookieApproved = false;
}
return window.edCookieApproved;
}
Extend the existing trigger edEvent so that it is only fired when the variable is set to true is set:
edEvent extend
In the next step, create a new trigger for the cookie banner event. If a corresponding trigger already exists, this step can be skipped.
Create a new tag named edCookieTag and select the option for the tag type Custom HTML from the options.
edCookieTag create
Insert the following code:
<script>
window.edCookieApproved = true;
</script>
Assign the previously created Custom Cookie Banner Event to the newly created tag. This ensures that events are only sent to Google Analytics when the cookie banner has been accepted by your customers.
Info: Important Notes on Using Google Tracking
-
As soon as you use Google Tag Manager, you must mention this in your privacy policy or legal notice (Impressum).
-
For security reasons, there is no tracking on the 'Payment', 'Login', and 'Forgot Password' pages within edoobox.
-
Support for Google Tag Manager is available directly from Google Support.
-
You also have the option to link Facebook Pixel, LinkedIn Pixel, Google Ads Tracking, Bing Ads Tracking, or other services with Google Tag Manager.
Please note: Notice Offers are loading for you
If this message appears, the GTM container is either loaded too late on the website, or the website where the edoobox plugin or iFrame is integrated does not contain a GTM container.
Related Guides
Keywords for this guide
Google Tag Manager ¦ Google Analytics ¦ Google Ads ¦ Bing Ads ¦ Facebook Pixel ¦ Conversion