Find out how to Set Up Google Analytics for WordPress

by | Oct 15, 2021 | Etcetera | 0 comments

Have you ever ever ever puzzled what folks in truth do after they enter your WordPress website?

Have you thought about which website pages they generally tend to stay on longest, what campaigns put across them there, and which of your website pages convert the best?

Google Analytics will assist you to understand all of this information and additional. Thru simply putting in place a Google Analytics plugin on your WordPress website, you’ll get began accumulating this data instantly. With lend a hand from a plugin, together with Google Analytics to WordPress is a painless process.

In the event you occur to’d quite not arrange a plugin for this serve as, there are different ways to mix Google Analytics together with your website too — as long as you’re comfortable with code.

In this knowledge, we’ll walk you by means of how you can arrange Google Analytics in WordPress with two different methods. In a handful of steps, you’ll uncover insights about your website visitors — in conjunction with what’s and isn’t operating for them — to beef up the patron experience, increase conversions, and find out about your target market.

Measure your performance with HubSpot's free WordPress plugin

Google Analytics for WordPress: What Can You Apply?

Whether or not or now not you’re looking for details about who’s visiting your website, what they’re doing while on your website, or how long they’re staying on specific pages, Google Analytics will give you the report you need. The device lets you follow many interactions between your website and visitors.

Let’s analysis some further of the actual forms of reporting Google Analytics provides:

Real-time Activity

Realtime tales show you provide task on your website, in conjunction with where visitors enter your website and the actions they take on your website. You’ll moreover see how consumers are getting on your website, what pages they’re visiting, and whether they’re converting. This report turns out to be useful for monitoring the moment results of a advertising and marketing marketing campaign, social media post, or real-world fit.


Acquisition tales will allow you to understand where your visitors are coming from. This information is really helpful when putting in your promoting and advertising and marketing campaigns because of it might if truth be told show you exactly what’s operating highest imaginable on your won visitors. It moreover tells you which ones consumers are new and which could be returning.


Engagement tales allow you to understand how consumers are interacting together with your website. It comprises internet web page views, scrolling task, time-on-page, interactions with media, and other necessary events. Google Analytics groups shopper task by the use of categories — a session may also be understood as a single discuss with on your website.

This report moreover tracks conversion fees. You’ll read about them on your function and understand which CTAs are operating. You’ll be informed further about which CTAs and landing pages on your website are a success and what keeps your visitors most engaged.


Monetization tales follow your source of revenue from purchases, subscriptions, and advertisements on your website. It moreover presentations you tactics consumers switch all the way through the checkout process and the best way they interact together with your product pages.

See also  The HubSpot Weblog’s 2022 Advertising and marketing Trade Traits Document: Knowledge from 1,000+ International Entrepreneurs


Retention tales follow how smartly your website helps to keep visitors — in numerous words, how perpetually consumers return on your website after their first discuss with, and for some way long. You’ll moreover view retention by the use of cohort. A cohort is a number of shoppers that proportion a characteristic, similar to the date of their first session.


The demographics report will allow you to understand who your visitors are. It tales consumers by the use of age, language, location, gender, and topics of passion.


Tech tales show you the era that visitors use to get entry to your website, in conjunction with tool magnificence (desktop, cell, or tablet) and getting access to device (web browser or cell device). This information can lend a hand knowledge your optimization efforts in line with which technologies your consumers choose.

Analytics Explicit to Your Plugin

In conjunction with the plethora of information that you simply download from Google Analytics, your most well-liked plugin may additionally come up with unique insights. For instance, let’s analysis what ExactMetrics provides. A couple of of those insights and features come same old with other analytics plugins inside the WordPress library as smartly.

In-Depth Potency Tales. The ones tales come up with in-depth potency details, akin to jump fees, referrals, internet web page views, herbal searches, and additional, for each and every post and internet web page on your website so that you’ll segment your analytical knowledge someway this is smart on your website and trade.

Precise-Time Stats. You’ll have the ability to analysis real-time statistics any time you open the plugin. A couple of of those stats include the prevailing selection of visitors on your website, your acquisition channels, and the provision of your provide guests.

Custom designed Size Tracking. You’ll create custom designed dimensions to get specific knowledge that problems to you and what you are promoting. For instance, you’ll create custom designed dimension tracking about positive events and forms of shopper engagement which might be necessary to you.

Set Permissions Based totally On Shopper Roles. While you’ve were given a large team, or team of folks with different {{qualifications}} and desires on the subject of your analytics, you’ll set permissions in line with shopper roles. This fashion you’ll be sure that best the proper folks may make changes.

Learn how to Set Up Google Analytics for WordPress

As a way to upload Google Analytics on your WordPress website, you’ll each transfer with a plugin or opt for a information way. We’ll analysis each and every methods, starting with the plugin.

Then again, whichever approach you choose, you’ll wish to have an vigorous Google Analytics account. To sign up for Google Analytics, first create a Google account. If you already have a Google account, you’re off to an ideal get began because of that’s the best way you’ll use Google Analytics.

See also  Tips on how to Design Icon Buttons with Divi’s Icon Module

Test in on your Google account, then head to the Google Analytics sign-up page and click on on Get began measuring.

wordpress google analytics: sign up page for google analytics

On the Account Setup internet web page, fill inside the crucial wisdom. Your Account Determine will be the Google Analytics profile identify on your website. You’ll make a choice regardless of identify you prefer, alternatively we recommend the use of what you are promoting identify.

Next, take a look at your most popular boxes beneath Account Knowledge Sharing Settings to keep watch over how Google would possibly proportion your knowledge, then click on on Next.

Beneath Property Setup, provide a name on your first Google Analytics belongings. You’ll make this your website’s house identify for now. Click on on Next.

In spite of everything, beneath About what you are promoting, you’ll provide additional information about your company. This segment is optional. To complete setup, click on on Create.

You’ll now be taken on your analytics dashboard. On this show, beneath Select a platform, click on on Web (since you’re tracking a website).

wordpress google analytics: data stream setup

You’ll be asked to organize a data flow into, which is a provide of knowledge from a website or an app. Fill inside the required fields and click on on Create flow into. This will give you a dimension ID, a string of characters you’ll use to send your website tracking knowledge to Google Analytics. In the event you occur to transport with a plugin, it’s imaginable you’ll need to add this information to the plugin, so it’s a good idea to stick this tab open.

wordpress google analytics: measurement id for google analytics

Now that your Google Analytics account is ready, let’s learn to link it on your WordPress website with a plugin.

Set Up Google Analytics With a WordPress Plugin

Depending on the Google Analytics plugin you choose, setup would possibly vary fairly. For the sake of this example, we’re going to test how you can organize the ExactMetrics plugin. Whichever plugin chance you end up opting for on your website, the process will look fairly an equivalent.

First, you’ll need to arrange and activate ExactMetrics on your website. (Now not positive how? See our guide to installing WordPress plugins.) Once that’s carried out, make a selection the new ExactMetrics chance from your WordPress dashboard, then click on on Unlock Setup Wizard.

wordpress google analytics: exactmetrics setup prompt

Click on on all the way through the setup presentations until you’re caused to test in to Google and grant the plugin your desired permissions. Then, on the Connect Google Analytics to Your Site show, make a choice the view you created previously and click on on Complete Connection.

After clicking by means of some additional presentations, you’ll be ready to use Google Analytics with WordPress. View your analytics beneath ExactMetrics > Tales.

wordpress google analytics: exactmetrics reporting page

Some plugins would possibly require you to insert the tracking code yourself within the match that they don’t come with the identical level of automation. You’ll find this tracking wisdom by the use of going on your Google Analytics admin tab (the cog icon inside the bottom left corner of the dashboard), then choosing Knowledge Streams beneath the required account and belongings.

See also  How To Repair “Misleading Website Forward” and Different Warnings on Your Site

wordpress google analytics: data streams option in the google analytics dashboard

Then, click on for your knowledge flow into. You’ll see your Measurement ID inside of essentially the most smart correct corner. Further down beneath Tagging Instruction, you’ll moreover see your International Site Tag, a block of code as a way to upload analytics on your website inside the segment of your HTML.

One of the crucial highest tactics as a way to upload this script on your HTML is with the Insert Headers and Footers plugin — this allows you to add tracking code without instantly bettering your knowledge, which would possibly wreck your website.

Set Up Google Analytics And not using a WordPress Plugin

Those who would quite not use a plugin and are comfortable bettering WordPress theme knowledge instantly can make a choice this next approach as a substitute. Quicker than continuing, back up your WordPress site in case something goes mistaken inside the process.

Since this system moreover calls so that you can transfer theme knowledge, we moreover recommend making your edits to a child theme in an effort to substitute the guardian theme without losing your changes.

To get your tracking code, transfer on your Google Analytics admin tab (the cog icon inside the bottom left corner of the dashboard) and make a choice Knowledge Streams beneath the required account and belongings. Select the data flow into you wish to have, then scroll proper all the way down to Tagging Instruction. Open the International Site Tag accordion and copy the code.

wordpress google analytics: tracking code for google analytics

Next, you’ll paste this code into your vigorous theme’s header.php document. Edit this document alternatively you prefer — you’ll download the document and re-upload it on your server, or edit the document by means of WordPress beneath Glance > Theme Editor.

In header.php, paste your tracking code merely above without equal tag (pictured beneath) and save your changes.

wordpress google analytics: tracking code pasted into the wordpress header.php file

This code will send tracking wisdom from your website to Google Analytics.

Use Google Analytics to take hold of your WordPress website.

Google Analytics will give you insights and data that can assist you to considerably beef up the state of your website. You’ll be informed further about what your visitors revel in and discover further about who they’re, so that you’ll continue to tailor your content material subject matter to their needs.

With WordPress, putting in place Google Analytics on your website is rapid and easy. In merely minutes, you’ll get began accumulating the guidelines that you need to make stronger shopper experience and increase conversions on your WordPress website.

Editor’s realize: This post was to start with published in November 2018and has been up-to-the-minute for comprehensiveness.

Use HubSpot tools on your WordPress website and connect the two platforms  without dealing with code. Click here to learn more.

WordPress SEO

[ continue ]


Submit a Comment