> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/cdp-365-user-guide-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/cdp-365-user-guide-en/use-cases/dataflows/how-to-create-a-new-google-analytics-data-source.md).

# How to create a new Google Analytics data source?

## Step 1: Open Data Source feature

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXed0HPRCghv2V26-7gaawWMyHYrpjSXI1AU7Ii8nO7hwjsiGYete-RpdMIUM5yeyI0_eTV7ytgEFsDE2caMDHOwDkD89i38SNi1TSoLdiCvKjFcsaDoWFhyGSU_R49L8rcIHeZEklYl6IL_Qo2soiy8UJi9?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

## Step 2: Click ![](https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FcypRf82IUncHjWZrK6rG%2Fimage.png?alt=media\&token=126cb2f9-e348-4c07-9760-05929412d8f2) to create a new data source

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd6rM1OxQvii_bhESz9M7wuiDa4an1PuXDxlYQM5-_wUozz5MEvm-FDscAU_dumz6VdHDmf9qJO14B1Afeyh26P5PW-fC6Mf28WYz--zrbMB-CZW9eAIGQftDf_L62DQuorpX1BE8vcmPhflyRMCavrlXMY?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

## Step 3: Select Google Analytics connector

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeUKGk2vNNx2yOtFAo-yKHFntvmDwrfMp9l1Ek_c0SseAPvDvFYt_1MSDzANjJTm2wvQzlDsaQd8okw5vMPMHozyDPlmDG2Dot0KNSw-7IEud3TkCOXqTMTdscOAlOrGuLmXe8OQ8pp1sCMlvq9l1JcGYJV?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

## Step 4: Click Authenticate

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcNBafwoglpDN0P506CNHvMDySHg8Qx1kQUdZofSn1M9cBpIqSt297pktiC2noqXimFD5YbEOVQPPZddT3a0iSWGMi5bzblxlRvzP6xApaXLnjTgf2VNed6-M3pF8GTeuO5-0mjXx7XgvjFXJx4RYg5yf8b?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

## Step 5: Connect the data

* Click **Authenticate**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfRk0ZiEvRzCaRQKdgxarmIZ2gVFLecX1jIt_Mn-R641d1zdcLNXLXRL2BgD0JXOzLqRG0lCd5f4d0Xy85O4QIvbWtXwPNMwyrSeREmQmu_1hFXF6Xe9vqKKVm1ODXRJtbtczp9Om2wBWSTBUGjSBP-OPx-?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

* After Clicking the **Authenticate** button, the system will open a new tab to connect.

  Click on the Google Analytics logo -> Login Google account connected to your Google Analytics

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FpCdXmK74PRMrEqcwknka%2Fimage.png?alt=media&amp;token=dfc7ab63-7e4d-49d2-9639-45ecc76d2888" alt=""><figcaption></figcaption></figure>

* Choose the view you want to take the data

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf3pTQ-P0a8sOT7lmVBRqFwp0Y7kwZgc_pRKry8aL1LaaBfrJ694E7nO9Yyeg4L-59KN38HKQpXTNdX-GXKsQ3rnYFL6YfZ8vMg4Eu5Uvw-juxNo0PWR4lQJOcmsc0XUqykerAe_-SAsqoLrxYpgNOhSxAX?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

* Choose the columns you want -> Click **OK**&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeJvUSz65D7CHAQteDaIit5538TCrkTYVob4RGUQT1d_V_mAkohQrQ1iL4EHGXEejz41xXRYRpOmgqf2ltlEwjRdkAC_zjZ8F5XExg1KGj4RbkxHFuNRQGgYieM8qQFnh_rV76BoVvCqbuC38TRv_QXNfdR?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

* The system will display a message after a successful connection

&#x20;     Click **Close** button to return to the Connect interface in the data source

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfakpHN61ac2-TUxFfN_2lbjoZlTd44uxB8djUujhYung1UIBBoWUaN2UpHa11IurEkxLZgS575Ma6stHe0ygpya-8Cb-_n7LimlEJQZdpX9_bIyJaEQ5hs_jCLsnENyFMD-VR9TZ8VJQ7RlkKhU5-twoW0?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

* After returning to the Connect interface in the data source, the system will display the message **Authentication success**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf1FD5LW0xta8zzH6vIkEdedrYTRHiuove9PH8hYOivSgmwHPZI4zYKSVZ7fAmT8d0vPpXErKx5J5JtbS4vK0ZR2e1kUHZfO209EAWmDApcOk6QwOHP-U1hnk9O_bJEguIc-D76VBrV393CFoTqmfFZlmLx?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

## Step 6: Click Select Field

* You can rename the data source if you want

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXecX67ZvaICm0BNSx3HNrZ3oPi9uh3-SMHXuhD-VY_d5c0Q5cdVquyBYUbgIlYsRmb6KENsnLMCFel9Bk6FePXXJgRHI6qJQ-p6tgpU0qOMUpv72nLGL0y2QhIsAMyzs4_j38h9j_GJWuJ9M3fiknwFG4sL?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

## Step 7: Data freshness

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfD75AGMjUQ8m4KjKinyl5z2cqPhjuX976WaUquVXVcNAXoFkl4Asp9x78xGyBmrxgP6VOWj6BrLTmYFoSka6Fja1hjw1Tjb8ashCBbGFuzmXpt4dyrBdh-zB5trk6YVKdxxxipfRelksBrK2yo56AUvj8?key=jqlrLHcQRq84j2mU-bHqrw" alt=""><figcaption></figcaption></figure>

* After clicking the **Connect** button, the system will display a list of fields that need to get data to the system
* Click **Apply** button to finish creating data source


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.antsomi.com/cdp-365-user-guide-en/use-cases/dataflows/how-to-create-a-new-google-analytics-data-source.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
