# Google Analytics

### Set up the Analytics global site tag&#xD;

### Basic instructions <a href="#basic" id="basic"></a>

1. If you have not already done so, [create a Google Analytics property](https://support.google.com/analytics/answer/1042508) for each website you want to collect data from.\
   \
   Creating a property generates a unique Tracking ID and a global site tag that includes the Tracking ID for that property. See [the following section](https://support.google.com/analytics/answer/1008080?hl=en#GAID) for information about finding your Tracking ID and global site tag.
2. Copy and paste the [global site tag](https://support.google.com/analytics/answer/1008080?hl=en#snippet) right after the opening `<head>` tag on each webpage you want to measure.

**Find your Tracking ID and global site tag**

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.

For Add google analytics into **Infix LMS** go to  **Seting**>**General Setting.** There you can find Google Analytics Field.

![General Setting](/files/-MbUrAIfh36FzyvMDVU9)

Put Your G-ID or UA-ID (Example: G-xxxxxxxxxx) and save.  Your Google Analytics Setup Complete.


---

# 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://infixlms.gitbook.io/infixlms/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.
