How to set up a Google Analytics Account and Tracking ID


This guide explains how to set up a Google Analytics Account and Tracking ID so you can track and analyse visits to your site. This will allow you to improve SEO and conversions.


A Google Account without an associated Google Analytics Account. Make sure that the account is appropriate for the purpose (e.g. a business account instead of a personal one).

If you already have a Google Analytics Account, see How to set up a Google Analytics Tracking ID instead.

Skill Level

Basic knowledge of browsers.


Time needed: 5 minutes.

  1. Go to the Google Analytics site.

    Go to
    If you’re not already logged in, enter the email or phone number associated with your Google Account, click Next, then enter your password and click Next.Google Account Password field and Next button - screenshot

  2. Start the set up of Google Analytics.

    If this is the first time you’ve used Google Analytics with your account, click Set up for free.
    If it’s not the first time, see How to set up a Google Analytics Tracking ID instead.
    Google Analytics Set up for free button - screenshot

  3. Complete the Account setup step.

    In the Account name field enter an account name for your reference. A single Google Analytics Account can be used to track multiple sites and apps (called Properties in Google Analytics).
    Tick or untick the Account Data Sharing Settings. Make sure that the options meet the legal requirements of the sites and apps you’re tracking. If you’re not sure, untick all the tick boxes (you can change them later).
    Click Next.Google Analtics Account details step - screenshot

  4. Complete the What do you want to measure? step.

    This relates to the individual Property (site or app or both) you want to track. You can add more Properties to the Account later.
    Select the appropriate option and click Next.Google Analytics What do you want to measure step - screenshot

  5. Complete the Property setup step.

    Fill in the Website Name, Website URL, Industry Category and Reporting Time Zone fields and click Create.Google Analytics Property details step - screenshot

  6. Review and accept the Terms of Service.

    If prompted, tick the I also accept the Data Processing Terms as required by GDPR. and I accept the Measurement Controller-Controller Data Protection Terms for the data that I share with Google. tick boxes and click I Accept.

  7. Update your email communication preferences.

    If prompted, tick or untick the My email communications tick boxes and click Save.Google Analytics My email communications options - screenshot

  8. Open the Admin menu.

    At the bottom of the left column, click Admin.Google Analytics Admin button - screenshot

  9. Go to Tracking Info.

    In the Property column, click Tracking Info then Tracking Code.Tracking Info and Tracking Code menu options - screenshot

  10. Make a note of the Tracking ID and Tag.

    Make a note of the Tracking ID value starting UA-..., and the Global Site Tag code snippet. You can use these to set up Google Analytics on your site or app.
    If you don’t make a note of them, you can always find them again by going to Tracking info > Tracking Code for the relevant Property in Google Analytics Admin.Google Analytics Tracking ID value and Global Site Tag code snippet - screenshot

More Info

Google guide to Get Started with Analytics:

Next Steps

Now you’ve set up a Google Analytics Account and Tracking ID, you should apply it to your Magento or WordPress site. See How to add Google Analytics to Magento or How to add Google Tag Manager to WordPress.