> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.teleporthq.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to add GA4 in a project

**Here is how to add Google Analytics 4 to your TeleportHQ project.**

|    |    |
| --- | --- |
| [1. Copy your GA4 tag](#2-copy-your-google-tag) | [2. Add the tag to the project](#2-add-the-code-to-project-settings) |

|| To be able to copy the Google Tag, your Google Analytics account already have a data stream set up.

## Copy your Google tag

* **Sign into your Google Analytics** account and go to **Admin**
* In the Admin tab, select an account from the **ACCOUNT** column
* Select a property from the **PROPERTY** column
* In the property column click **Data streams > Web**
* Click the **Data stream** that you created for your website
* Under the **Google Tag** section, click **View tag instructions**
* On the Installation instructions page, go to the **Install manually** tab:
* Click the copy to clipboard icon or copy the **Google tag** from **<!-- Google tag (gtag.js) -->** to **</script>**.

![How to copy Google Tag for Google Analytics 4](https://storage.crisp.chat/users/helpdesk/website/60c4bca58bb99c00/ga-4-1_sr2smh.gif)

||| ! Depending on the version you use, the Google Analytics interface may look different.

## Add the code to project settings

To add to your project:

* Go to **Project settings**, either from the Dashboard or by clicking on the project name in the top bar of the editor
* Open the **Custom Code** section
* Under the **HEAD** section, paste the Google Tag into the input
* Scroll down and click **Save changes**

![Paste Google Tag in TeleportHQ project settings](https://storage.crisp.chat/users/helpdesk/website/60c4bca58bb99c00/ga-4-2_142te2p.gif)