# Angular

Here are the easy steps to add the SiteBehaviour Tracking script to their Angular project.

### Steps to Add Script to a Angular Project

1. Go to your [SiteBehaviour Organisation's page](https://web.sitebehaviour.com/a/org) and click on the **Settings button** for your site.
2. Go to the Tracking code tab.
3. Click on **Copy** to copy the Tracking Code to your clipboard.
4. In your Angular project directory, find the `src` folder. This folder contains your application's main files.
5. Open the `index.html` file located in the `src` folder.
6. Locate the closing `</head>` tag in the file.
7. Paste your web analytics script just before the closing `</head>` tag in the `index.html` file.

```
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>YourAngularApp</title>
    <base href="/">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <!-- Other head content -->
    <script>
        // Your sitebehaviour tracking script here
    </script>
</head>
<body>
    <app-root></app-root>
</body>
</html>

```

9 . After allowing a couple of minutes for the update, check [SiteBehaviour's Dashboard](https://web.sitebehaviour.com/) for statistics. We recommend visiting your website to ensure that your initial activity is accurately reflected on the SiteBehaviour Dashboard.


---

# 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.sitebehaviour.com/guides-and-integrations/angular.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.
