Google Analytics for internal linking: track link clicks
Short answer Google Analytics 4 doesn't count clicks on links between your own pages; its automatic link tracking only covers links to other sites. You have two free options: a Page referrer report shows which page sent visitors to each page, with no setup. A click event added in Google Tag Manager shows the exact link and words clicked.
Want help applying this to your business? Talk it through on a free 30-minute call.
Book a callDoes Google Analytics track internal link clicks?
No. GA4's automatic link tracking, part of enhanced measurement (the events GA4 records without code), only fires on links that leave your site. Google describes the outbound click event as firing:
"each time a user clicks a link that leads away from the current domain and to another website" (Analytics Help: Enhanced measurement events)
A click from your blog post to your service page is not recorded as a click. What GA4 does record is the page view that follows, and where it came from. That gives you two routes, both free (Google Marketing Platform: Analytics; Tag Manager):
| Question | No setup: Page referrer report | Tag Manager click event |
|---|---|---|
| Which page sent people to my service page? | Yes | Yes |
| Which link on that page did they click (menu, button, text link)? | No | Yes, by link text |
| Works on past data? | Yes, as far back as your retention setting | No, only from the day you turn it on |
| Time to set up | 10 minutes | About 30 minutes, once |
Start with the referrer report. Add the click event when you need to know which of several links on a page does the work.
Without setup: see which page sent each visit
Every page view carries a page referrer: the address the visitor was on just before. Google defines it as "the user's previous URL and can be this website's domain or other domains" (Google Analytics Data API). When that address is your own site, the visitor arrived through one of your internal links.
Browsers send the full previous address for moves within one site. Their default rule is to "send the origin, path, and query string when performing a same-origin request" (MDN Web Docs: Referrer-Policy). So for internal moves you see the exact page, not just your domain.
- In GA4, click Explore, then Blank. It opens as a free-form table.
- Under Variables, import the dimensions Page referrer and Page path, and the metric Views.
- Drag Page referrer and Page path into Rows (a free-form table takes "up to 5 dimensions as rows", per Analytics Help: Free-form exploration), and Views into Values.
- Add a filter: Page referrer contains yourdomain.com.
- To study one page, add a second filter: Page path exactly matches /your-service-page/.
Each row now reads "from this page, to that page, this many times". Explorations only reach back as far as your data retention setting: 2 or 14 months on a free property, set in Admin (Analytics Help: Data retention).
Track internal link clicks with Google Tag Manager
This records one event per click, with the link's address and words. You need Google Tag Manager installed on the site and edit access to the container.
- Turn on the click variables. In Variables, click Configure and tick Click URL and Click Text. Click URL holds the link's address; Click Text holds its words (Tag Manager Help: Built-in variables for web).
- Make the trigger. Triggers > New > Click – Just Links, which tracks "clicks only on HTML links that use the a element" (Tag Manager Help: Click trigger). Choose Some Clicks and set the condition: Click URL contains yourdomain.com.
- Make the tag. Tags > New > Google Analytics: GA4 Event. Enter your measurement ID and the event name internal_link_click (Tag Manager Help: Set up Google Analytics events in Tag Manager). Add two event parameters: link_url = {{Click URL}} and link_text = {{Click Text}}. Attach the trigger from step 2.
- Test. Click Preview, enter your site's address and click a few links. Preview also turns on debug mode, so the events show up in GA4's DebugView (Analytics Help: Monitor events in DebugView).
- Publish. Click Submit, then Publish.
Name rules: event names and parameter names can be 40 characters, and a parameter value 100 (Analytics Help: Event collection limits). Link text rarely comes near 100.
No Tag Manager? A developer can send the same event from the site's code with the gtag() function: the event command, the event name, then the parameters (Google Analytics developers: Set up events). Same event name, same two parameters.
Do I need custom dimensions for link_url and link_text?
Usually not. GA4 already has built-in Link URL and Link text dimensions. Google lists Link URL as "Populated by the event parameter link_url", and Link text the same way from link_text (Google Analytics Data API). Google's own advice:
"Don't create a custom event parameter if a predefined dimension already exists." (Analytics Help: Create event-scoped custom dimensions)
That is why the steps above use those exact names. If you add a parameter of your own, such as link_position for "menu", "body" or "footer", register it in Admin > Data display > Custom definitions with scope Event. It shows in reports after 24–48 hours (Analytics Help: About custom dimensions and metrics). A free property allows 50 event-scoped custom dimensions, the same page says.
One catch: outbound clicks also fill Link URL. Always filter by Event name = internal_link_click.
How to read it: which internal links work
Build a free-form exploration with Rows Page path and Link text, Values Event count, and the filter Event name exactly matches internal_link_click. Page path here is the page where the click happened. Compare each link's clicks with that page's Views and you get a rough click rate.
| What you see | What it means | What to try |
|---|---|---|
| Page with many views, few internal clicks | Readers leave or stop there | Add a clear next step near the top: related content links |
| Menu link clicked far more than the in-text link to the same page | The in-text link is hidden or vague | Rewrite its words to say what's on the other side: anchor text for conversions |
| Your booking or quote page rarely appears as a destination | Few paths lead to it | Link to it from your most visited pages: internal links to money pages |
| A link gets clicks, but visitors leave the next page fast | The link promised something the page doesn't deliver | Fix the destination page or the link words |
For the whole journey, use a path exploration. Google says it lets you "find the top pages that new users open after opening the home page" and work backward from a key event, such as a booking, to see the paths that led there (Analytics Help: Path exploration). Set the node type to page path, or to event name to see internal_link_click steps.
Don't track internal links with UTM tags (the ?utm_source= codes added to links). Google's URL builder page frames them for "referral links and ad campaigns" (Analytics Help: URL builders), meaning links from outside your site. The click event above does the internal job.
For which links to add in the first place, see internal linking strategy.
Example
These are illustrative.
A plumber's water heater post
The referrer report shows the post got 3,000 views in two months but sent only 30 visits to the water heater repair page. After adding click tracking, Link text shows the in-text link "here" got 4 clicks and the header menu link "Water heaters" got 90. The owner rewrites the link as "book water heater repair" and moves it to the second paragraph. Cost: $0.
A dental office's new patient page
A path exploration ending at the booking event shows most bookers passed through the insurance page first. The office adds a "check your insurance" link to the home page and the new patient page.
A bookkeeping firm's service menu
Clicks show 80% of internal clicks happen in the top menu, and footer links almost never get used. The owner stops adding new pages to the footer and puts the two most important ones in the menu instead.
FAQ
Can GA4 show internal link clicks without Tag Manager?
Partly. The Page referrer dimension shows which of your pages sent each visit, with no setup. To know which exact link was clicked, you need an event, sent through Tag Manager or the site's code.
Why is my Link text column empty or "(not set)"?
Some links have no words, such as an image or icon link, so Click Text is blank. Check the link in Tag Manager's Preview to see what it captured.
Will tracking internal clicks show up in past reports?
No. The event only counts clicks from the day you publish it. The Page referrer report works on data you already have, within your retention period.
Does tracking internal links help SEO?
Not by itself. The tracking is a report for you: it shows which links people use, so you can fix weak ones and point visitors toward the pages that matter.
Different for you?
- You're still deciding where links should go: internal linking strategy.
- You want GA4 to count calls, forms and bookings first: GA4 key events for a small business.
- You want the wider SEO reports in GA4: Google Analytics for SEO.
- Your important pages have no internal links at all: orphan pages.
- You'd rather hand off tracking and fixes: SEO agent.