# Google Analytics - IMG

Shopware 6 has an integrated function for integrating Google Analytics so that you can analyze your visitors and sales in the long term. In this article, I will only explain how to set up Google Analytics in Shopware 6.

You can link Google Analytics individually for each of your sales channels. To do this, go to your corresponding sales channel in the page navigation of your Shopware administration and to the `Analysis` tab.

<figure><img src="/files/x3AdJhwCySpqi5ihs9wv" alt=""><figcaption></figcaption></figure>

Here you will find the settings you need to link your Analytics account. Yes, you need a Google Analytics account. You can find out more about how to set this up at Google.

{% embed url="<https://support.google.com/analytics/answer/10269537?hl=en>" %}

{% hint style="info" %}
**Hint:**

In Germany, the GDPR requires IP anonymization to be active (as of 20.02.2022). This may certainly change again, but here is a note to you!

You should definitely also add an entry on Google Analytics to your **privacy policy**. You can either do this using generators or directly from a specialist lawyer.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rh-webdesign.com/shopware-theme/en/shopware/google-analytics-img.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
