# Google Analytics

Google Analytics provides the merchant with valuable information about their online store that can be used to monitor their customer's interactions with their store. It allows the merchant to see where customers are coming from, how they are entering the store and when they are leaving. This will allow the merchant to optimise their store to create the best customer experience. It also allows the merchant to monitor their campaigns and assess the effectiveness of their marketing efforts.

### How to Add Google Analytics

1. First set up analytics for your store and get your Google Analytics (GA) code.
2. Select the store you wish to add your analytics code to.
3. Select Manage Store Settings underneath Settings.
4. Click on Google Analytics.
5. Enter the code provided by Google.
6. Enable enhanced analytics if you wish to receive them.&#x20;

{% embed url="<https://scribehow.com/embed/Updating_Google_Analytics_Tracking_ID_for_Store__1D-wppiMRUmmS9uuKj1aMA>" %}


---

# 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://support.storefront.co.za/features/stores/store-settings/tracking-and-analytics/google-analytics.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.
