How to set up Google Analytics in 7 moves

Google Analytics

Track how many people visit your site, where they live, how long they spend on a given page and what pages they prefer, among heaps of other things, using Google Analytics and our step-by-step guide to setting it up.

It’s vital to understand how your website is performing on a day-to-day basis and uncover any areas or issues that might need your attention. To do this, you need to monitor important metrics such as visits, conversions and the keywords that visitors are using to find your site.

Google Analytics is an absolute must-have for this. The good news: it’s free, and easy to use.

The tool allows you to do everything from tracking visitor numbers and demographics, to conversions and transactions as ‘goals’.

If you don’t already have an account, use our step-by-step guide to setting one up.

Before you start

Set up a Google account if you don’t already have one.

Have a website that you want to track the performance of.

Have a think about what you want to start monitoring and what matters to you – visitor numbers, keywords that get people to your site via searches, where your traffic is coming from, popular pages, and so on.

Now let’s get started

Step 1: Head to and sign in using your Google account (or set one up if you don’t have one). Once you’re in, click the ‘Sign up’ box’.

Google Analytics log-in page

Step 2: Fill in the form that you’re presented with including your website name, URL, industry and time zone. If you’re planning to use a vanity URL (we haven’t just made that up, honest) instead of your Moonfruit address (i.e. instead of then you can use that. If you’re planning on operating more than one website under a company umbrella, you may also wish to assign an account name.

Step 3: Google will ask if you want to share your analytics data with other Google products like AdWords, AdSense and Webmaster Tools. While this is completely optional, the more tools you use, the more insights you’ll have into your site.

Step 4: After you click ‘Get Tracking ID’ (and read and accept the Terms of Service) you’ll be given a unique tracking ID and some tracking code. There are other options that you can adapt, but unless you know a little about domains and sub-domains, for now you can just copy the code to your clipboard.

Tracking ID

Step 5: Log into your Moonfruit account and enter the site editor. Select ‘Services’ from the main menu and hit the ‘Setup’ button under Google Analytics. You’ll see a box where you need to paste the code that you generated earlier. Do that, then click ‘Save’, and you’re done.

Paste the tracking ID

Step 6: Google Analytics is a goldmine of information and the best way to learn what to look for is to click around and look for the information that matters to you. Access ‘Google Analytics’, click on ‘All web site data’ and under ‘Standard Reporting’ you’ll find some of the key metrics to keep an eye on, including the number of visits (Audience>Overview) and where your traffic is coming from (Traffic Sources > Sources > All Traffic). The Google Analytics YouTube channel has some excellent tips to help you get started –

Experiment with Google Analytics

Step 7

For every data request you make, ensure you’re selecting the time period you want to cover by adjusting the date information in the top-right. You can select from some pre-set date ranges, or enter your own custom date range, and you can also compare to other time periods.

Something else to try

If you’re running an e-commerce website, or any site with some form of enquiry, it makes sense to track transactions as ‘goals’ which allow you to see the various stages customers went through, from first click to final action. There’s an excellent walk-through on the Google Support site.

Want to create a free website with Moonfruit? Find out how on our homepage.

Vicki Shiel
Editor at Moonfruit. Likes food and smoothies.

More posts by this author

8 Responses to “How to set up Google Analytics in 7 moves”

  1. Pal

    Hi there,
    You reference in this blog post about tracking transactions as goals – I am using the moonfruit online shop functionality – is there a way to track successful transactions? And is it possible to include the demographics tag in the GA snippet:

    ga(‘require’, ‘displayfeatures’);

    I’ve tried adding it in and it does not verify in Google Analytics

    Please help!


    • Steven

      Hi Pal,

      I’m looking in to finding out if this is possible. I’ll get back to you as quickly as I can.



    • Steven

      Hi Ron,

      Just to confirm you only need to paste the analtyic ID (looks like: UA-41562233-1). You paste this ID in to the Services menu (briefcase icon) of the editor.



  2. Julie

    This doesn’t work – I copy the code by right clicking, then when I am on the Google Analytics setup on Moonfruit, the right click option doesn’t allow me to paste it – I just get the Flash Player settings options. How can I copy from Google and Paste onto Moonfruit?

    Many thanks,

    • Steven

      Hi Julie,

      You can paste content by using keyboard short cuts. Hold ‘Ctrl + V’ on a PC and ‘Command + V’ on a Mac.



  3. Daniel


    I pasted my tracking ID straight from google but moonfruit says: “The code block does not appear to contain a valid google ID.” Can anyone help?

    • Steven

      Hi Daniel,

      Just ensure you are only pasting the analytic ID (It should look like: UA-41562233-1). You need to paste it in the services menu: Log-in to edit your site > select ‘Services’ > select the Analytic box and paste the code ensuring there are no spaces before or after it. It may also be worth trying an alternative browser to paste the code if you still have issues.




Add a comment

  • (will not be published)

More posts by this author