How to integrate Google Analytics on your website

Tips 'n tricks about the web, digital trends, and online marketing

Back to the overview

The success of a website is not just about beautiful design or great content. What really matters is how well you understand your audience and how you can use those insights to optimise your website. This is where Google Analytics comes in. It is a powerful and free utility that allows you to see how visitors behave on your website, where they come from and what interests or does not interest them.

But how do you make sure Google Analytics is running properly on your website? No worries, we take you step by step through the integration process.

(Read more below.)
How to integrate Google Analytics on your website

Questions about this post?

Schedule a free consultation
Send an email 👋

Step 1: Create a Google Analytics account

The first step is to create a new GA4-property, which will collect data from your website.

  • Go to Google Analytics and log in with your Google account.
  • Click the cog icon in the bottom left to go to the Administrator page.
  • Under the Account column, choose the account to which you want to associate the new GA4 profile (or create a new one if you don't have one yet).
  • In the Property column, click Create Property.
  • Enter the name of your website, select your time zone and currency.
  • Scroll down and choose Google Analytics 4 as the type of property you want to create.

Once you've done this, you now have a GA4 profile that allows you to use Google's modern analytics capabilities.

Step 2: Generate the Google Analytics 4 measurement code

After you create the property, you need to obtain the measurement code to place on your website. This code collects and sends data to Google Analytics.

After creating your property, you will be redirected to the Data Streams page. Here, click Web to create a new data stream for your website. Enter the URL and name of your website and click Create Stream.

The next page shows the details of your data stream, including the unique measurement code to install on your website.
Copy this code, as we are going to add it to your website in the next step.

Step 3: Add the tracking code to your website

Now that you have the tracking code, it's time to install it on your website. How you do this depends on the platform you use for your website. We discuss some of the most common options here.

1. For WordPress users:

If you have a WordPress site, adding the tracking code is quite easy:

  • Via a plugin: Install a plugin such as "Insert Headers and Footers" or "MonsterInsights". These plugins provide an easy way to add the tracking code without having to dive into the HTML manually.
  • Add manually: Don't want to use plugins? Then go to "View" > "Editor" in your WordPress dashboard and open your theme's header.php. Add the tracking code just above the closing tag and save.

2. For other platforms:

For platforms like Wix, Squarespace or Shopify, adding the tracking code is usually possible through their own settings panel. Here are the steps:

  • Wix: Go to your Wix dashboard, click "Settings" and then "Tracking & Analytics". Add your Google Analytics code here.
  • Squarespace: Go to "Settings" > "Advanced" > "Code Injection" and paste the tracking code in the header section.
  • Shopify: In your Shopify dashboard, go to "Online shop" > "Preferences" and paste the code into the Google Analytics field.

Step 4: Verify that everything works

Now that you've installed the tracking code, it's important to check that everything is working properly. Fortunately, Google Analytics itself provides a way to verify this.

  • Open Google Analytics and go to the Realtime view.
  • Visit your website in a new tab.
  • If everything is set up correctly, you should see an active user appear in your Realtime view within seconds. This means that Google
  • Analytics successfully tracks your website traffic.
  • If you see no activity, check that you have placed the code in the right place and that you have not made any typos.

Step 5: Set goals and reports

Now that Google Analytics is properly integrated on your website, you can do much more than just track the number of visitors. One of the most powerful features is goal setting. This allows you to measure the success of specific actions on your website, such as newsletter sign-ups or purchases.

  • Go to the Administrator panel in Google Analytics.
  • Under the "View" column, choose "Goals" and click "New goal".
  • Here you can set different goals, such as completing a purchase, a subscription or a specific page visit.
  • In addition, you can create customised reports to track the data that matters most to you. This gives you better insight into how your visitors behave and which marketing efforts are effective.

You're done!

Congratulations! If you have completed all these steps, you should now have Google Analytics running successfully on your website. This powerful utility provides you with valuable insights that can help you optimise your website, improve your marketing strategy and ultimately achieve more conversions.

Need help implementing Google Analytics or want us to set it up for you? Feel free to contact us and we will be happy to help you!

👉 Funkhaus goes the extra mile for you

We are the all-in-one partner that takes care of everything: from creative web designs to technical optimisations and strategic content. You focus on your business, we take care of the rest.

Send us an email for personal advice

Get in touch, and we'll schedule an appointment soon

👋 Hi, we are there for you!

I have a question about
This field is for validation purposes and should be left unchanged.

What our partners say

ALV UjWy3uzn2KNmBydvkWG gQlc Xn3F4n5EhHsDULb UoLMHPXUhI4rQ=s120 c rp mo br100
Angelique Lijffijt

I approached Wout as part of a website for an estate agent where Realworks needed to be built in and am very pleased with the result. Funkhous has a professional approach and fast service. Definitely highly recommended.

ACg8ocJ kQqqK hnmZ8zgS7Mi5xiLRms g0STrIKXR MioPocvuB6A=s120 c rp mo br100
David Demuynck

The collaboration with Funkhaus was perfect. They managed to build a beautiful website that fully meets our objectives. We highly recommend Funkhaus' services!

ACg8ocIhuGjaXDeM6VEXpqvIB39 ifYMqf1kRc CvndQziHsq1Npaw=s120 c rp mo br100
Mara Bisceglia

What a top service!

Thanks Wout !

ACg8ocL1s i3 3KxViPTnVPQpC7wxkbNosNZKrkWaxrqs5rv63E6A=s120 c rp mo ba2 br100
Johnny Spies

A conflict in our association's woocommerce shop was preventing payments from being processed. Wout from Funkhaus checked with us and managed to identify the problem.

Good party that works quickly and professionally and keeps in touch very well!

ALV UjXkl rZ1z19x9xzhakNnfEPG9TJPK4shMgU 1KDuR maEhAuMr=s120 c rp mo br100
Jakster Fransiscus

Excellent advice for my new website! Very professional and focused tips. Highly recommended!

ACg8ocLreNhuQOPHdLtot1u7RRYxFuJxSTOf3xv4UGicrHHu46d0JA=s120 c rp mo br100
Sander van Schoonhoven

Professional company. Contracted for website renewal. Sprint type approach. Are willing to adapt the project execution pace to the customer's available resources.

ALV UjXC2Zdg3O58cWvns4 nlmfB69hPatxpiilcjB6E0HQk5X7c2Oc=s120 c rp mo br100
Mafi Ramazani Matondo

I was referred to funkhaus because previous web designer/web host could not accomplish what I had requested . In the end, Wout got special features I needed for my webshop up and running. Everything went smoothly, very good communication.

Wout is also easy to reach in case of questions or problems. I would recommend funkhaus to anyone. Topper!!!

ALV UjXOfljfBkz7 FUp qF7D9rzFUKHTgFbn43VgpPUD7944mhKoh2l=s120 c rp mo br100
Lisa van Gils

Funkhaus designed our website. They heard us well and translated our wishes into something that suits us perfectly. In the process, they continue to help us with topics that are not 'proprietary' for us such as visibility and marketing. The contact is fluid and good. We are fans!

ALV UjWKUUTkisw sDA2 GPdAz5Wpubmj6LHHeWrnDuEk1YlyxAhmg6=s120 c rp mo br100
Koen Van den Abeele

Top service!

Highly recommended to anyone looking for reliable & honest marketing support with a creative touch!👌

ALV UjX2lujPCJu32emIBT826jJnj11OW1Lc84QhoOGKvBGTpudaG 8=s120 c rp mo br100
Emmanuel Verraes

Very hands-on and service-minded! I have been recommended Funkhaus by another customer and I - on turn - highly recommend their services.