> For the complete documentation index, see [llms.txt](https://fredhopper.gitbook.io/product-discovery/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fredhopper.gitbook.io/product-discovery/sending-and-managing-analytics-data/sending-analytics-data-using-google-analytics-v4.md).

# Sending Analytics Data Using Google Analytics v4

1. Find your service account in **APIs & Services > Credentials**. You will need to create a service account if one doesn't exist yet.\
   \
   ![](https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FUrXaeVwhCdfjQcmn2dHh%2Fimage.png?alt=media\&token=6fb65b40-66ef-4f46-a85a-6333562ea8b6)<br>
2. Choose your service account and select the Edit service account icon.\
   \
   ![](https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2F6FQrRDowaXOiaWPuzZLz%2Fimage.png?alt=media\&token=8e21a962-841a-4cad-9615-b1a591ec8fc6)<br>
3. Open the Keys tab and from the Add key option, select **Create new key**.\
   \ <img src="https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FRDLxK86eCeIB2fMQWbjF%2Fimage.png?alt=media&amp;token=ebc5cf2d-d118-4559-b528-a03aa570520d" alt="" data-size="original"><br>
4. Click **Create**. The credentials.json file will download to your machine.
5. Go to the [GA cloud console](https://console.cloud.google.com/).
6. From the navigation menu, select **APIs & Services > Library**.\
   \
   ![](https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FYlAk0IPnQsIkvYxTCA4J%2Fimage.png?alt=media\&token=f38b01f4-4f60-4dff-b845-4d3b4330209a)<br>
7. Enter *Google analytics data API* and enable the API.\
   \
   ![](https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FwXGG1Nttj8ZaffihlKD0%2Fimage.png?alt=media\&token=46d01ef9-f71a-4a03-b352-1e8eba92003f)\
   ![](https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FZffj0FgUqovLGH8ijlyb%2Fimage.png?alt=media\&token=fd75cd9c-2d6c-4135-b120-60778259c951)<br>
8. Send the credentials.json file to your Rezolve AI Technical Consultant.
9. Provide the used profile\_ids:\
   \
   ![](https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2F6ChHkRL0hTRFBVVW3Uvl%2Fimage.png?alt=media\&token=0be88265-f751-41e6-bbfa-f9042664abff)<br>
10. Flag the following:
    1. If you are a GA 360 customer for Universal Analytics.
    2. In the comments box within the form whether you would like to proceed with the migration as soon as possible or if you would like to wait (GA 360 customers have an additional year from Google to migrate).

### Granting permission to service account email address

1. Log in to Google Analytics.

<figure><img src="https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FWnkBT5f9oesjrOmA02j0%2Fimage.png?alt=media&amp;token=c9d99075-3860-4833-aea5-47302c8c72a4" alt=""><figcaption></figcaption></figure>

2. From the left-hand navigation, click **Admin**.
3. From the left-hand navigation, click **User Management**.

<figure><img src="https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FPCrmyk4oeMlDCZM2bdef%2Fimage.png?alt=media&amp;token=ace96f46-087b-4ab3-b885-af415f86d9dc" alt=""><figcaption></figcaption></figure>

4. In the **Add permissions for** text box, paste the service account email address copied at the end of step 2 above and grant it **Read & Analyze** permissions from the drop-down menu.
5. Click **Add**. The Service Account Email Address will be used by the Fredhopper AProxy only for authentication purposes and will have the minimum privileges, e.g. "Read & Analyze".
