For you as a merchant, it is important to know what's happening on your website. We generate some basic graphs to support you with that (if the statistics feature is included in your package). If you’d like some deeper insights or don't have access to the feature, implementing a service like Google Analytics can be a good idea.
Google Analytics is a service that lets website and shop operators view more detailed statistics regarding the use of their website or shop, for example frequently accessed pages, or the origin of their visitors. Thus, Google Analytics can help you to better understand the behavior and the needs of your visitors and to optimize your website accordingly.
Skip to:
- How to use Google Analytics for your website
- How to set up Google Analytics
- How to connect Google Analytics and your website
- How to submit your Google Tag
- How to customize which data is collected for your website
How to use Google Analytics for your website
To use Google Analytics for your website, you'll only need to connect your fully set up Google Analytics 4 account to your website. You need to do that via a so-called Google Tag in your Google Tag Manager account.
Note
In order to use the functionality of Google Analytics, your website must have its own domain.Caution
Check whether the use of Google Analytics is permitted by data privacy laws in your country and if there are any conditions for using this service.For example, you might need to update your privacy policy to inform your visitors about the use of Google Analytics. For further information about editing your privacy policy, refer to the article Provide a privacy policy. For further information about the requirements regarding visitor data and privacy policy when using Google Analytics, refer to the article Analytics policies.
How to set up Google Analytics
Before you can activate Google Analytics for your website, you need to set it up.
Caution
If you already have a Google Analytics account, make sure that it is a Google Analytics 4 account! In 2020, Google introduced Google Analytics 4 (also known as GA4) which replaced Google Universal Analytics (UA) on July 1, 2023. For further information on how to check whether you use Universal Analytics or Google Analytics 4, refer to the Google Analytics Help.If your account is not a Google Analytics 4 account, you need to migrate your account first! For further information regarding the migration, refer to the instructions in the Google Analytics Help.
This is how you set up Google Analytics 4:
For further information regarding these steps, also refer to the instructions in the Google Analytics Help.
- Open Google Analytics.
- Sign in to your Google Analytics 4 account or create a new one.
- Create a Google Analytics 4 property.
- Add a data stream. Make sure to select the platform Web.
You have set up Google Analytics.
Before the tracking can start, you need to connect your website to Google Analytics by creating a Google Tag in your Google Tag Manager account.
How to connect Google Analytics and your website
There are multiple ways to connect Google Analytics, but for your website you'll need to use the Google Tag Manager. The complete workflow is also described in the Google Tag Manager Help.
Before connecting your website, make sure that you:
- Set up Google Analytics as described in the section above.
- Set up and integrated Google Tag Manager into your website. For further information, refer to Integrate Google Tag Manager.
The thing that connects your website, Google Analytics, and the Google Tag Manager is the so-called Google Tag. This tag establishes the data flow from your website to Google Analytics.
In Google Tag Manager, tags fire based on events, such as when a form is submitted or when a video is played. Triggers are used to listen for these events and they determine when a tag is fired or blocked. This also applies to the Google Tag.
To connect Google Analytics to your website, all you need to do is create a Google Tag and make the settings for its triggering.
Create Google Tag
- Open the Google Tag Manager.
- Sign in to your Google Tag Manager account.
- Select the container for your website.
- Open the menu Tags.
- Select New to create a tag.
- Enter a name for the tag at the top (e.g., "Google tag configuration - example.com").
- Select Google Tag in the box Tag Configuration.
- Enter the Measurement ID of the data stream you want to use for your website in the field Tag ID. You can find this ID in the data stream settings in your Google Analytics account. For further information, refer to the Google Analytics Help.
- Optionally, configure your tag by making additional settings. For further information, refer to the Google Tag Manager Help.
Set trigger
- Select the box Triggering to choose a trigger.
- Use the trigger Initialization - All pages trigger to ensure that the Google tag fires before other triggers.
Info
There are multiple options and you can also configure a fully customized trigger. For further information, refer to the Google Tag Manager Help. - Select Save.
You have created a Google Tag and set the firing triggers. The Google Tag will now be displayed in the menu Tags in your Google Tag Manager account.
To edit the settings again, select the name of your Google Tag.
How to submit your Google Tag
Before your Google tag starts to send information to Google Analytics, you'll need to submit it. Before doing so, it is recommended to verify that your tag works as expected, as described in the section below.
Verify your tag works
- Open the Google Tag Manager.
- Sign in to your Google Tag Manager account.
- Select the container for your website.
- Select Preview in the top bar.
The Tag Assistant opens in a new tab. - Enter the URL of your website.
- Select Connect.
Your website will be opened in debug mode in a new tab.
Caution
Don't close the tab with your website and make sure that you accept or have accepted all cookies for your website. Otherwise the connection of your Google Tag to your website might not work. - Check if your Google Tag fired:
- If your tag fired, it should be listed under Tags Fired in the output summary of the Tag Assistant.
- If your tag didn't fire, check your tag's trigger settings.
- When you are done, return to your container in the Google Tag Manager.
Publish your changes
- Select Submit in the top bar to publish your changes.
- Make the respective settings for the new version of your container. For further information, refer to the Google Tag Manager Help.
- Confirm your settings by selecting Publish.
You have submitted your Google Tag. Your Google Analytics account should now start to collect data for your website.
Caution
Your visitors can decide to only accept the required cookies when being prompted by the cookie notice. In that case, the tracking of Google Analytics is automatically disabled and the respective analytics will not include data from these visitors.How to customize which data is collected for your website
The collection of data for your website via Google Analytics is based on so-called Events. An event allows you to measure a specific action or behavior in your website. For example, you can use an event to measure when someone loads a page, selects a link or completes a purchase.
For some of these situations, Google has already set up an event, but for others you may need to set up recommended or custom events. For further information, refer to the Google Tag Manager Help.