Google Analytics

Google Analytics


Follow this guide to get Google Analytics setup in your Divjoy codebase. Click the ▶︎ icon next to any step to see a detailed walkthrough with screenshots. If anything is confusing please reach out.

Basic Setup

Create a new "Universal Analytics Property" in Google Analytics. When setting up your property you'll need to click the "Advanced Options" link and then select "Create a Universal Analytics Property only". The analytics library we use doesn't yet work with the new "Google Analytics 4" property type (see Github issue here).
After creating your property, copy the "Tracking Id" and then add it to your codebase .env file.

You should now have a working analytics in your web app


Workaround with Google Analytics for Firebase (Property format change from UA-* to G-*)