Analytics Q&As Logo
Analytics Q&As Part of the Q&A Network
Q&A Logo

How do I install Google Analytics 4 on a new website?

Asked on Aug 31, 2025

Answer

To install Google Analytics 4 (GA4) on a new website, you need to create a GA4 property and add the tracking code to your site. This involves setting up a new property in your Google Analytics account and then using Google Tag Manager or directly embedding the GA4 tag on your website.
  1. Sign in to your Google Analytics account and go to Admin.
  2. In the Property column, click "Create Property" and select "Google Analytics 4."
  3. Follow the setup wizard to configure your property settings.
  4. Once the property is created, go to Data Streams and select "Web."
  5. Enter your website URL and stream name, then click "Create Stream."
  6. Copy the Measurement ID provided.
  7. Add the GA4 tag to your website using Google Tag Manager or directly in your site's HTML by embedding the provided code snippet.
Additional Comment:
  • Using Google Tag Manager is recommended for easier management of your tracking tags.
  • Ensure your website's privacy policy is updated to reflect the use of Google Analytics.
  • Test your setup by checking real-time reports in Google Analytics to confirm data is being collected.
✅ Answered with Analytics best practices.

← Back to All Questions
The Q&A Network