> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.maglr.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Integrate Google Analytics

Once you have created and shared your publication, you obviously want to know how it is performing in terms of visited pages, time per session and interactions. It's nice to know how many people have visited your publication and how long they were visiting it, or which pages were the most popular. All this information can be viewed if you add your Google Analytics code via the **navigation environment settings** in our dashboard.

![Image: analytics tab of the navigation environment in the Maglr dashboard](https://storage.crisp.chat/users/helpdesk/website/8f12a00d9918d000/398ea739-411a-4f02-b7f4-accc69_yr0q43.png)

Go to the **navigation environment settings** and edit your current environment via the **pencil icon**. Click on the **analytics tab** and you will see a box in which you can paste your Google Analytics Tracking Code (UA/GA-code, i.e. UA-000000-2 or G-AA1A111AA1). On this page, you can also choose if you want your publications to be indexed in Google's Search Console by flicking the switch on or off.

When you have added your GA-Code, all new data coming in will automatically be sent to your Google Analytics account. You will also still be able to view your project statistics from within the Maglr dashboard. You will find your [publication's statistics](/en/article/understanding-the-dashboard-statistics-6i5rzt/) under the **statistics** button on the left side of the screen when you find yourself in a project's **page overview**.

## Finding your Google Analytics ID

To find the Google Analytics ID (Universal Analytics):

1.  Sign in to [your Analytics account](https://analytics.google.com/).
2.  Click [Admin](https://support.google.com/analytics/answer/6132368).
3.  Select an account from the menu in the _ACCOUNT_ column.
4.  Select a property from the menu in the _PROPERTY_ column.
5.  Under _PROPERTY_, click **Tracking Info > Tracking Code**. Your [Tracking ID](https://support.google.com/analytics/answer/7372977) is displayed at the top of the page.

To find the Google Analtyics ID (Google Analytics 4):

1.  Sign in to [your Analytics account](https://analytics.google.com/).
2.  Click [Admin](https://support.google.com/analytics/answer/6132368).
3.  Select an account from the menu in the _ACCOUNT_ column.
4.  Select a property from the menu in the _PROPERTY_ column.
5.  Under _PROPERTY_, click **Data Streams** and **select your data stream. **Your Measurement ID** is displayed at the top of the page.

|| Note: the tracking ID is a string like UA-000000-2 or G-AA1A111AA1. It must be included in your tracking code to tell Analytics which account and property to send data to.