Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This short guide will help you to setup and track GA4 events.

  1. You need to setup GA4 property according to Google instructions.

  2. When GA4 property already set up you need to install gtag.js code to your website.

  3. Go to Admin settings in Google Analytics.

  4. Select Data Streams

  5. Open your website’s stream

  6. In Web stream details go to Configure Tag Settings

  7. Select Installation Instructions

  8. In Installation instructions section you can scan your website or select your website’s platform manually to get instructions

  9. Or you can select Install manually section and get gtag.js code that should be installed in website’s <head> element to every page that you want to track.

  10. Embed code looks like

    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-GHY8WW59SZ"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'G-GHY8WW59SZ');
    </script>
  11. In case you have already gtag.js code installed on website but with UA property (UA-.....) we highly recommend to change it to GA4 property (G-.....).

  • No labels