# Installatie-instructies voor Google Analytics 4

**URL:** <https://meta.discourse.org/t/setup-instructions-for-google-analytics-4/167863>\
**Category:** Data & reporting\
**Tags:** analytics\
**Created:** [21 oktober 2020 om 13:02 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:** 4

<div class="post-metadata">

**Author:** ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)\
**Post date:** [6 november 2020 om 20:48 UTC](https://meta.discourse.org/t/setup-instructions-for-google-analytics-4/167863/4 "2020-11-06T20:48:56Z")

</div>

We just merged an option to upgrade to GA v4 into core:

[https://github.com/discourse/discourse/commit/09b8a61f65e5a07e4fdec90ff996396b4512a40e](https://github.com/discourse/discourse/commit/09b8a61f65e5a07e4fdec90ff996396b4512a40e)

To upgrade to Universal Analytics v4 which uses `gtag` as a wrapper for `analytics.js`, head to Admin \> Settings and search for `ga_version`. Switch this setting to `v4_gtag` and refresh to upgrade to version 4.

Be aware in upgrading to v4 you will need to change any custom events you’ve defined in theme components to use the new `gtag` API instead of `ga`.

---

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