This task is for users with the following roles: OC Site Manager and OC System Administrator.
By July 1st, 2023, all Universal Analytics (UA) properties will stop processing data to make way for Google Analytics 4 (GA4). You should have already started dual tagging with GA4, providing you with a relevant dataset. Now, we have made it possible to connect your Insights Dashboard with a GA4 property.
These instructions are for users who have already connected a Google Analytics UA property to their Insights Dashboard and want to switch the data source to GA4. If you have not, please see the following options:
- For first-time users and new sites: Connect your OpenCities site with Google Analytics and Set up the Insights Dashboard
- For UA property users: Start dual tagging to gather data with Google Analytics 4
Switch your Insights Dashboard to read GA4 data
As you have already set up your Insights Dashboard to read data from UA and begun dual tagging with GA4, the last step is to allow your Insights Dashboard to display GA4 data. For this, you'll need to enable two APIs:
- Log in to the Google Developer Console and select your project from the My Project dropdown menu.
- Select Enable APIs and Services to go to the API Library.
- Search for Google Analytics Data API, then select and Enable it.
- Search for Google Analytics Admin API, then select and Enable it.
- Return to Enable APIs and Services to confirm these APIs appear in the list.
- Go to your OpenCities admin and go to More > Insights.
- Select your GA4 property you want to use from the Select data source dropdown menu, then Save.
What else?