Google Analytics

Google Analytics

💡
Follow this guide to get Google Analytics 4 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

Sign up for Google Analytics and create a new property
image
image
Copy your “measurement ID” and then add it to your codebase .env file.
You can copy it from the full code as shown above (see blue selected portion)
You can copy it from the full code as shown above (see blue selected portion)
You can also copy it from the stream details page
You can also copy it from the stream details page

🙌
You should now have a working analytics in your web app