> For the complete documentation index, see [llms.txt](https://support.agentfire.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.agentfire.com/faqs-and-general/google-analytics/articles-1504903-02-connecting-google-analytics-to-your-dashboard.md).

# How to Connect Google Analytics to Your Website

Track your website visitors with Google Analytics 4: create your account, add the Google tag to your website and find your traffic reports.

Google Analytics 4 shows you how many people visit your website, where they come from and which pages they read. It's free, and you don't need to run Google Ads to use it.

{% hint style="info" %}
**Want us to do it?** Email <support@agentfire.com> with your website address and your Google Analytics **Measurement ID** (it starts with **G-**), and we'll install it for you.
{% endhint %}

## Set It Up

{% stepper %}
{% step %}

### Create your Google Analytics property

Sign in at [analytics.google.com](https://analytics.google.com) with your Google account. Google walks you through five short screens: name your account, name your property (your website address works well), pick your business type and goals, then choose **Web**.

On the last screen, enter your website address, give the stream a name and click **Create & continue**.

<figure><img src="https://2039430885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq65vhH2v4k5rpDOha9Vm%2Fuploads%2Fgit-blob-fde9b47551ac7f9c4f77b958d7cf4f3e523a820e%2Fga-6-stream.png?alt=media" alt="Set up data stream screen with the website address and stream name filled in and the Create and continue button highlighted"><figcaption></figcaption></figure>

Already have a property for your website? Skip this step and use that one instead.
{% endstep %}

{% step %}

### Copy your Google tag

Google shows your tag right after you create the stream. Under **Install manually**, click the copy icon to copy the whole tag.

<figure><img src="https://2039430885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq65vhH2v4k5rpDOha9Vm%2Fuploads%2Fgit-blob-066d58cad57ac5c7256436c75d076a976fb77924%2Fga-7-tag.png?alt=media" alt="Set up a Google tag window with the Install manually code and its copy icon highlighted"><figcaption></figcaption></figure>

Closed that window? Go to **Admin > Data streams**, click your website and then **View tag instructions**. Your **Measurement ID** (starting with **G-**) is on the same page.

<figure><img src="https://2039430885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq65vhH2v4k5rpDOha9Vm%2Fuploads%2Fgit-blob-5ab78d4800bbf14102628be561ed246e4ba3338a%2Fga-10-stream-details.png?alt=media" alt="Web stream details with the View tag instructions button and the Measurement ID highlighted"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Paste it into your website

In your Dashboard, open the menu in the top left corner and go to **Site Settings > AgentFire Settings > Header/Footer Scripts & Metas**.

Paste the tag on a new line in the **Head first** box, below anything already there. If your site has a cookie banner, set that box's category to **Analytics & Marketing**. Then click **Update** on the right and wait for the "Options Updated" message.

<figure><img src="https://2039430885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq65vhH2v4k5rpDOha9Vm%2Fuploads%2Fgit-blob-cc3baaaf09356a2ac4c47a7c24d29381da290e24%2Fga-3-head-field.png?alt=media" alt="Header/Footer Scripts and Metas page with the Head first box highlighted and the Update button"><figcaption></figcaption></figure>

This adds Google Analytics to every page of your website, including your IDX search pages.
{% endstep %}

{% step %}

### Check that it's working

Visit your website in another tab, then in Google Analytics open **Reports > Realtime overview**. You should see at least one active user within a few minutes.

<figure><img src="https://2039430885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq65vhH2v4k5rpDOha9Vm%2Fuploads%2Fgit-blob-4d353ba012bf61dd5412d805ab21d5b2d1979e54%2Fga-9-realtime-card.png?alt=media" alt="Realtime overview showing 1 active user in the last 30 minutes" width="500"><figcaption></figcaption></figure>

Other reports can take up to 48 hours to fill in.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Before pasting, look for an existing Google tag (a line containing **G-**, **GTM-** or **gtag**) in the same box. Two tags for the same property double-count your visitors. If you're not sure, email us before adding another.
{% endhint %}

## Find Your Traffic Reports

Your traffic reports live in Google Analytics, not in your AgentFire Dashboard.

| To see...                                  | Go to                                           |
| ------------------------------------------ | ----------------------------------------------- |
| Where your visitors come from              | **Reports > Acquisition > Traffic acquisition** |
| Which pages, posts and listings get viewed | **Reports > Engagement > Pages and screens**    |
| Who's on your site right now               | **Reports > Realtime overview**                 |

Use the date picker in the top right corner to change the time period.

## Common Questions

<details>

<summary>Google says "tag not detected" or I see no data.</summary>

Google's **Test installation** button can say the tag wasn't detected even when it's working. Check **Reports > Realtime overview** first: if you see yourself there, you're all set. If not, wait 48 hours and check that you're looking at the right property. Still stuck? Email <support@agentfire.com> with your website address and Measurement ID.

</details>

<details>

<summary>Can I log in to Google Analytics with my website login?</summary>

No. Google Analytics uses your Google account. If you can't open the property, ask whoever created it to add your Google account.

</details>

<details>

<summary>My tag starts with GTM- instead of G-. Is that right?</summary>

Yes. Google now gives many new websites a tag that starts with **GTM-**. Paste it exactly as Google shows it. Your **Measurement ID** (starting with **G-**) is still listed under **Admin > Data streams**.

</details>

<details>

<summary>I'm using Google Tag Manager. Do I still need this?</summary>

If your Tag Manager container already includes a Google Analytics tag, you don't need to add another one.

</details>
