# Google Analytics

To collect data for the mini-game through Google Analytics, you must first register a property in Google Analytics.

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

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

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

Select "Web" on the "Choose a platform" screen.

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

Add the mini-game link to the Website URL. The mini-game URL can be found in the Campaign information section of the studio's Game settings.

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

When you click "Create and continue," the Google tag information will be displayed. The ID starting with 'G-' in that tag is important.

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

The reason is that a value like 'G-0JH2J74M7R' is called a <mark style="color:blue;">**Measurement ID**</mark>, and this value needs to be entered into the studio.

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

Copy the Measurement ID and add it to the studio.

<figure><img src="/files/7nchKLCoWHPTGPVUeI9O" alt=""><figcaption></figcaption></figure>

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

Data collection will be available approximately 48 hours after the setup.


---

# 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.brandedminigames.com/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.
