# Add Google Analytics

This will guide you through adding Google Analytics to your website.

Please remember you'll need to publish your website online and visit your site before you'll see any tracked visitors in the Google Analytics Dashboard.

### Adding Google Analytics to your RapidWeaver Project

Log into Google and go to the Stream details for your website property. You'll want to copy the code under Tagging Instructions > Add a new on-page tag.

![Stream Details for a site property on Google Analytics](/files/bh7DHfhGuSuJk7QC70kb)

Once you have copied the code, you'll need to add it to the header area on your website. To do this go to Settings > Code > Head and paste it in. See below for an example of how this should look.

![Example of Google Analytics Code inside of a RapidWeaver Website.](/files/MhUJSFusBp8kh7rgf7EO)


---

# 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.realmacsoftware.com/classic-manual/user-manual/how-to/add-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.
