How to Track Anchor Links in Google Analytics

Do you want to track anchor links in Google Analytics? Many WordPress single page themes rely on anchor tags for navigation. For Google Analytics, these are all just a single page, which makes it hard to get meaningful statistics about the content viewed.

In this article, we’ll show you how to track anchor links in Google Analytics.

Why Track Anchor Links With Google Analytics?

Turning on anchor tracking is greatly helpful if you’re using a parallax or a single page theme that use anchors tags in the main menu, instead of separate pages. If you created your WordPress site using a single page theme, you’ll lose the ability to track page views because the entire content of your site is published in a single page.

If you want to identify how your visitors interact with your site and what content they view during their visit, you’ll need to track anchor links with Google Analytics.

MonsterInsights is the best WordPress Analytics plugin. Get it for free!

Because the basic Google Analytics setup doesn’t allow you track anchor links, you’ll need to use a plugin like MonsterInsights to enable it. With MonsterInsights, enabling anchor links tracking is super easy. All you need to do is select a checkbox in the Settings page.

Once the tracking is enabled, Google Analytics will start tracking the clicks on your menus as page views.

Let’s take a step by step look at tracking anchor links in Google Analytics.

1. Install MonsterInsights

The first thing you need to do is install and activate the MonsterInsights plugin on your site. After the activation, you’ll need to connect Google Analytics with MonsterInsights.

For more details, you can learn how to properly set up Google Analytics with MonsterInsights.

2. Track Anchor Links

In your WordPress dashboard, go to Insights » Settings » Link Attribution. Select the checkbox next to Turn on anchor tracking.

track anchor links with Google Analytics

Don’t forget to select the Save Changes button.

How to View Anchor Links Tracking Data in Google Analytics

To view the anchor links tracking data, navigate to Behavior » Site Content » All Pages.

anchor links tracking data

You’ll find the anchor links tracking data along with other pages data.

That’s it!

You’ve successfully enabled anchor links tracking in Google Analytics.

If you want to determine which call-to-action link in a page is getting the most clicks, you need to enable Enhanced Link Attribution in Google Analytics.

And don’t forget to follow us on Twitter and Facebook for more Google Analytics tutorials.

Want to Try MonsterInsights for Free?

Enter the URL of Your WordPress website to install MonsterInsights Lite.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.