# הוראות הגדרה עבור Google Analytics 4

**URL:** <https://meta.discourse.org/t/setup-instructions-for-google-analytics-4/167863>\
**Category:** Data & reporting\
**Tags:** analytics\
**Created:** [21 באוקטובר,‏ 2020,‏ 1:02pm UTC](https://meta.discourse.org/t/setup-instructions-for-google-analytics-4/167863 "2020-10-21T13:02:53Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)\
**Post date:** [28 באפריל,‏ 2022,‏ 7:24pm UTC](https://meta.discourse.org/t/setup-instructions-for-google-analytics-4/167863/12 "2022-04-28T19:24:28Z")

</div>

> [@Paracelsus](#):
>
> The only con so far is not having the historical data from the universal tracker on the new GA4. 😤

It’s possible to send data into both UA and GA4. That way there is historical data for comparison after the UA data is deleted next year.

> **[\[UA→GA4\] Send events to both your UA and GA4 properties \[Legacy\] - Analytics...](https://support.google.com/analytics/answer/11091026?hl=en)**
>
> You are viewing a legacy article about Universal Analytics. Learn more about Google Analytics 4 replacing Universal Analytics. By

I put the UA-gtag.js code snippet in `<head>` and added one more line to send data into GA4:

```javascript
gtag('config', 'UA- ********-**', { "anonymize_ip": true });
gtag('config', 'G- *********', { "anonymize_ip": true );

```

> [@TechGeek](#):
>
> but for discourse additional configuration may be required).

Does anyone know what additional configuration might be required? It seems to be working here, but my GA configuration is simple.

---

_[View the full topic](https://meta.discourse.org/t/setup-instructions-for-google-analytics-4/167863)._
