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.

Stuur een mailtje, of plan meteen een afspraak!

Krijg gratis en vrijblijvend persoonlijk advies

👋 Hi, we are there for you!

Waar kunnen we je mee helpen?
This field is for validation purposes and should be left unchanged.

What our partners say

ACg8ocJt x jc2hTOYYMGtOTgh0dBqYpt4KV5h1dsR7mxFWzVDu3wQ=s120 c rp mo ba3 br100
Kylie Mineo

Fantastic website builder with a lot of experience! It was very smooth cooperation and you can't ask anything too much of Wout to get everything to your liking. Highly recommended!

ACg8ocJXvWqS7PtoR nW4kErEbIkb0vwIfuoGuIMFTjJ64vovSCY2g=s120 c rp mo br100
Yves Van Pelt

Our website was created by Funkhaus. Wonderful result and overall more than satisfied with the approach, listening to our wishes, fresh whole and above all a good working product. Thanks for everything Wout. We can only recommend you.

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.

ALV UjVz8zTyCYL91CYe63xehE9W6WC86w76AZrnJMo3UA2kC5FMZ40=s120 c rp mo br100
karine peeters

Great performance by wout. Received a lot of good comments from my customers regarding the website. The professional approach, the class that the website exudes and the top service before, during and after the launch of the website is outstanding. For a beautiful professional website 1 address. @funkhaus 👌

ACg8ocKxtBNObGcPOJjka9o7PyBAovojvS63364L2MlcTj0jpAb9wA=s120 c rp mo br100
Niels Geenen

These guys definitely deserve 5 stars! good approach, good communication and beautiful design.

Definitely highly recommended!

ACg8ocLBFd0pYGUn8L9E8ovDKiFfIsKN1c 2HGOjENMv3u niXXfgA=s120 c rp mo br100
Hans Kenis

Very nice collaboration. Great input and ideas with a beautifully finished website as the end result!

ACg8ocJdUD3KlBekLh0h0KtNWgHzJuPY2UTKo5W6PGCnuZM65rEZQw=s120 c rp mo br100
Daisy Lens

Wout and his team do a fantastic job and are always helpful. Even when something goes wrong, they are super quick to solve everything. Very nice to work with them. Highly recommend!

ALV UjV7gFWiuTldP0t8MfnucTRR2hGYDxleR36QssFT5x26dpvdE8lSQA=s120 c rp mo ba2 br100
Fanny Verstappen

Ik ben heel tevreden over de samenwerking met dit bureau. Ze hebben mijn bedrijfspagina’s op sociale media weer helemaal op orde gebracht. Ze stonden altijd klaar om te helpen, dachten mee en waren bovendien erg vriendelijk. Zeker een aanrader!

ACg8ocLeSUl3gkNQ5YTKP4 E0I0HDBX3wqPB 5qNy3tEyHpUlW1Oog=s120 c rp mo br100
willy beuls

alles wordt tot in de puntjes afgewerkt

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!