Setting up Google Analytics and adding its tracking code on your WordPress website is critical for gathering website visitor data and understanding your customers’ digital consumer journeys. For example, you can use data in Google Analytics to determine which pages your customers visit on your website prior to making a transaction.
To set up Google Analytics on your WordPress website, you can use one of the following three options:
The most simple and fastest way to set up Google Analytics code on your website is by using a WordPress plugin. Our go-to plugin for Google Analytics and WordPress integration is Google Analytics Dashboard Plugin for WordPress by MonsterInsights.
To install and activate MonsterInsights on your WordPress website, search for MonsterInsights in the plugins section and click on Install Now and then Activate.
Once you’ve installed MonsterInsights, go to Insights > Settings. You can connect your WordPress website with your Google Analytics clicking on Connect MonsterInsights and take the required steps to connect the two accounts.
a. Click on Connect MonsterInsights
b. Select the type of website you have (e.g. business website)
c. Select the email address associated with your Google Analytics account
d. Allow MonsterInsights to have access to your Google account
e. Select the Google Analytics associated with your website and complete connection
f. Once connected, you’ll see your Google Analytics under the Google Authentication section.
You can also add your Google Analytics tracking code by adding your Google Analytics account’s Global Site Tag (gtag.js) in the header.php file.
To do so, first go to the admin section of your Google Analytics account and click on Tracking Info and then Tracking Code.
Then, copy the Global Site Tag (gtag.js).
After, go to appearance > Theme Editor > Theme Header and insert the tag before </head>.
You can add Global Site Tag (gtag.js) without accessing the header.php file by using Google Tag Manager.
To do so, first click on Tags and Tag Configuration.
Then, select Google Analytics: Universal Analytics.
Select Pageview as tag type and add a new variable for Google Analytics settings.
Add your Google Analytics tracking code.
Select All Pages as a trigger.
Lastly, save the trigger and click on Submit and you’re good to go!
Integrating your Google Analytics account and WordPress correctly is critical to measuring your website performance. By connecting your Google Analytics account with your WordPress website using one of the three options above, you can analyze online behaviours, perform data mining, or website trends. These insights will help you further optimize your website and digital marketing campaigns!
If you want help with setting your Google Analytics account for your WordPress website, please get in touch below and we’ll be more than happy to help!
We are here to help you 7 days a week. If you have any questions or want to say ‘hi’, please feel free to get in touch!
Technology. Data. Creativity.
Connecting Dots In A Digital Labyrinth.