# Google Analytics

Have you ever imagined being able to analyze your users' behavior and gain valuable insights, such as: Which reports they access most frequently, how much time they spend on each page, which menu is the most accessed, how far they scroll on the screen, other important events.

This is possible thanks to the integration that **Power Embedded** offers with **Google Analytics**. Discover more about your portal’s usability through this powerful tool.

Below, you will find **complete documentation** with a detailed step-by-step guide to configure and use this integration effectively.

Take advantage of all the features to optimize the **user experience** on your portal.

### Configuring Google Analytics

To create your **Google Analytics** account and start collecting data from your system, follow these steps:

<details>

<summary>I do NOT have a Google Analytics account</summary>

To create your **Google Analytics** account and start collecting data from your system, follow these steps:

Go to: [analytics.google.com/analytics/web](https://analytics.google.com/analytics/web).

Click on **“Start Measuring”**.

<img src="/files/2YnrI0OFaFPkjWbXj5M9" alt="" data-size="original">

Enter a **name for your account**. The default permissions are usually sufficient, so keep the default settings and click **Next**.

<img src="/files/BzxVQ9Jt2ns3tEIHqOxX" alt="" data-size="original">

**Step 2: Property Setup**

1. Enter a **name for your property**.
2. Configure the **time zone** (set it to **Brazil**, if applicable). Currency configuration is not required for this integration, but you can set it if desired.
3. Click **Next**.

<img src="/files/yORdcIrx82WAxEK02nPO" alt="" data-size="original">

**Step 3: Business Setupócio**

1. Enter your **business details** and click **Next**.

<img src="/files/jAzEqlBqJWPF8IHjT7Ip" alt="" data-size="original">

**Step 4: Business Objectivescio**

1. Select **“Analyze user behavior”** as the main objective of this setup.

<img src="/files/nYTmLWBQ1RvAv6DoAWwV" alt="" data-size="original">

Choose **Brazil** and click **“Accept”** to proceed.guir.

<img src="/files/7ce396olysx7tvvuoi7y" alt="" data-size="original">

In the next step, select **“Network”** or **“Web”** (in English, **“Web”**).

<img src="/files/jPID0qyYufkKmVlKWc2s" alt="" data-size="original">

**Step 5: Filling in the URLRL**

1. Enter the **website URL** field with the **subdomain** used to access the **Power Embedded** reports portal.
2. Assign a **name to this data stream** and click **“Create and Continue”**.nuar

<img src="/files/Ox9FkADdBdsB42jfXE12" alt="" data-size="original">

On this page, before clicking **“Next”**, click on the newly created **property** to retrieve the **Google Analytics tracking code**.cs.

<img src="/files/OXwQrc9gZ74paCJw60hG" alt="" data-size="original">

You will be redirected to the page where the **tracking code** is available..

<img src="/files/rP67S8BIYv6jRwmC8B6W" alt="" data-size="original">

</details>

<details>

<summary>I Already Have a Google Analytics Accountcs</summary>

If you already have a **Google Analytics** account and want to create a **new property** to start collecting data from your system, follow the steps below:o:

Go to: <https://analytics.google.com/analytics/web>.[b](https://analytics.google.com/analytics/web).

Click the **Admin** button at the bottom of the page.

<img src="/files/jDFsxmGnXT6HTi1b0MvV" alt="" data-size="original">

Click **Create** and then **Property**..

<img src="/files/VVI6KTh2bVb3FmtlKSfI" alt="" data-size="original">

On the **Property Creation** screen, enter the **property name** (your website name), Configure the **Country, Time Zone, and Currency**.

<img src="/files/iBv5N2ggWlcL8iMFY6Qn" alt="" data-size="original">

On the **Business Details** screen, enter your **industry** and **company size**.

<img src="/files/q4nLB8IpfLltjWbfI89M" alt="" data-size="original">

On the **Business Objectives** screen, select the goal of using **Google Analytics** on your website.

<img src="/files/OnBpYkcI5D9NJmEDSXNt" alt="" data-size="original">

On the **Data Collection** screen, select the **Web** option.

<img src="/files/yB9hf2lEsJGyDIdH9Lb6" alt="" data-size="original">

Click the button to open the **Set Up Data Stream** screen. Enter your **website URL** and **website name**, then click **Create and Continue**.

<img src="/files/zW8xlAnr0ZCeT2w5W3ro" alt="" data-size="original">

On the **Set Up a Google Tag** screen, select **Install Manually**, and you will find the **JavaScript code** needed to insert the **tracking code** on your website (if not already installed).

In the highlighted section, you will find the **Google Analytics tracking code**, which you need to **copy and insert into Power Embedded** to track user behavior on the visualization portal.

<img src="/files/fraOyTX24gS9jcP53SRm" alt="" data-size="original">

</details>

### How to Configure in Power Embedded

With the copied **Google Analytics tracking code**, go to the **Power Embedded admin portal**: Navigate to **Settings**. Paste the tracking code into the **“Google Analytics Tracking Code”** field.

<figure><img src="/files/9drSbfPtV0OwO63GIFTo" alt=""><figcaption></figcaption></figure>

### How to View the Data

To view the **collected data** on the **Google Analytics** website, go to the homepage.

If you **just created the property**, no data will be available yet, as the tracking code has not captured any activity. A message similar to the one shown below will appear.

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

After **some interactions** on the visualization portal, **Google Analytics** will start generating **metrics** on the dashboard, and the message will disappear.

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

With **tracking enabled**, you can **analyze user behavior** and gain valuable insights.

A particularly useful feature is the real-time view, which provides a broad perspective of user activity and key events as they happen.

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


---

# 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.powerembedded.com.br/en/administration-portal/settings/organization/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.
