How to configure Google Tag Manager and Google Analytics

Blanca Castillo
Blanca Castillo
  • Updated

 

Where do I find it?

You can find the settings in Palisis by going to Sales Channels > Online > Webshop > Edit the webshop 

 

After that, click on the Branding And Social tab at the bottom:

 

Then, scroll down and you will find the Google Analytics and Google Tag Manager settings:

 

What does it mean?

In this article, we are going to explain how to configure your Google Tag Manager account in order to track and analyze your Palisis webshop events.

 

What should I do in Google Tag Manager and Google Analytics?

You need to create an account in Google Tag Manager by clicking on the “Create Account” button.

unnamed__1_.png

 

Then enter a container name, for example, “My site”, you don’t need to enter the webshop URL here, and select the container type “Web”.

Once you have created the container you will be on this page:

unnamed__2_.png

Now you need to create two tags to transfer the data to Google Analytics, so you should click on Tags > New

Tags_New.jpg

 

Then enter a name for your tag, in our case we have named the tag “GA4 Configuration”, and click on the “Edit” icon:

GA4Configuration.jpg

 

Now, you need to select the Tag type “Google Analytics” and then "Google Tag":

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 15.png

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 16.png

 

 

Afterward, you need your Google Analytics ID as the “Measurement ID”.

 

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 17.png

 

You can easily find this information in Google Analytics. So please, go to Google Analytics, and then go to Admin > Data Streams:

GA_Admin.jpg

GA_Admin_Data_Stream.jpg

 

Now copy the “MEASUREMENT ID”:

 

This is the information you need to enter in Google Tag Manager in your Tag Configuration, so you need to come back to Google Tag Manager and enter the Measurement ID here:

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 57.png

 

Finally, you can configure the Triggering and select “All pages”:

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 76.png

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 77.png

 

 

At this point you can create your second Tag by clicking again on New. In our case, we have named it as “GA4 Event Purchase”:

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 81.png

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 96.png

 

And for this tag, we are going to select the Tag Type “Google Analytics" and "Google Analytics: GA4 Event”:

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 102.png

Configure Google Tag Manager and Google Analytics for Ecommerce - Step 103.png

The “Configuration Tag” should be our first tag (GA4 Configuration in our case), and the “Event Name” should be {{Event}}:

GA4_Event_Purchase_Configuration.jpg

 

Now we have to configure the “Triggering” for this second Tag, and in this case, we are going to select “Custom Event”. For that, we need to create a new Trigger:

GA4_Event_Purchase_Triggering.jpg

GA4_Event_Purchase_Triggering_Add.jpg

 

In our case we have named the trigger “GA4 Ecommerce Purchase Trigger”:

GA4_Ecommerce_Purchase_Trigger.jpg

Once you click on the Edit button, then you need to select the trigger type “Custom Event”:

Trigger_Type_Custom_Event.jpg

 

Now you need to enter an event name, in our case, we have named it “purchase”:

Purchase_event_name.jpg

 

At this point, we have already created our Google Tag that will collect all the events and transfer them to Google Analytics when the “purchase” event takes place:

GA4_Event_Purchase_Definitive.jpg

 

 

Finally, we need to Submit the information by going to Submit > Publish > Continue (you don’t need to enter a name):

Submit.jpg

Version_2.jpg

 

At this point, you  need to repeat the process for each of the events you want to track:

  • Add to cart
  • Remove from cart
  • Being checkout
  • Purchase
  • Add Payment info

 

How to create an exploration?

Now you can create an exploration in Google Analytics to analyze your data. For that, go to Google Analytics and click on Explore:

 

You can choose a blank template or one of the pre-define ones. In our example, we will use a "Free form":

Here you can find more information about how to get started with "Explorations".

On the other hand, these are the parameters you can track from the Palisis webshop:

  • ‘item_id' = Route Code
  • 'item_name' = Route Name
  • 'item_category' = Priceplan
  • 'item_variant' = Passenger Category
  • 'coupon' = 'Flyer Discount Code and/ or used E-Guma Voucher Code'
  • 'price' = price per ticket of the regarding passenger category including applicable discount
  • 'value' = Basket Value
  • 'discount' = applied price reduction amount from a flyer discount or eguma voucher
  • 'currency' = applied currency
  • 'payment_type' = the used payment method
  • 'quantity' = Quantity of tickets per passenger category

Example:

 

If your Palisis webshop is embeded in an iframe, it means that your website domain is different from the Palisis webshop domain so you need to setup the cross-domain measurement in Google Analytics in order to unified measurement across more than one domain. Here you can find the official Google Analytics documentation.

For more information about how to set up Google Analytics on your webshop with an iframe, please visit this article.

 

 

What should I do in Palisis?

That’s all, you have already setup your Google Tag Manager and Google Analytics accounts, you can enter the GA4 ID in the online-shop (Desktop) settings by going to Configuration > Sales Channels > Webshop > Edit: