Sub topic 5
Outbound Clicks and How GA4 Decides a Link Is Outbound
This chapter assumes that your GA4 property has a web data stream and that the Google tag is installed. You should also understand that GA4 records interactions as events with parameters.
Enhanced measurement can automatically record an event when a visitor clicks a link that leads away from your current domain. The event name is click. GA4 adds outbound: true so you can identify it as an outbound click.
How GA4 identifies an outbound link
GA4 compares the destination domain of the clicked link with the domain of the page. If the domains differ, GA4 normally treats the link as outbound.
For example, a visitor on example.com who clicks a link to partner.example.net generates an outbound click. A link from example.com/products to example.com/pricing does not, because both URLs use the same domain.
The event includes these common parameters:
| Parameter | What it contains |
|---|---|
| `link_url` | The complete destination URL |
| `link_domain` | The destination hostname |
| `link_text` | The visible text of the link, when available |
| `link_id` | The link's HTML `id`, when available |
| `link_classes` | The link's CSS classes, when available |
| `outbound` | `true` for an outbound click |
The exact parameters can vary with the page markup and tag implementation. Inspect the event in DebugView rather than assuming every parameter is populated.
Cross-domain measurement changes the result
Cross-domain measurement connects sessions across domains that you control, such as shop.example.com and checkout.example.com. You configure these domains in the web data stream settings.
When a destination domain is included in your cross-domain configuration, GA4 treats the link as part of the same user journey. A click to that configured domain does not normally produce the enhanced measurement click event as an outbound click.
This prevents ordinary navigation between your connected domains from being counted as an external referral or outbound interaction.
Configure and test the setting
Open the relevant web data stream:
- Go to Admin.
- Open Data collection and modification and select Data streams.
- Select the web stream.
- Open Enhanced measurement.
- Keep Outbound clicks enabled, or disable it if you use your own click tracking.
- Save the setting if GA4 prompts you.
The setting applies to the stream. It does not rewrite historical data. After enabling it, test a real link on a page where the Google tag loads.
Use a link such as this for testing:
<a href="https://www.example.org/resource">Read the external resource</a>In DebugView, look for the click event. Confirm that its parameters include the expected link_url, link_domain, and outbound value.
gtag('config', 'G-XXXXXXXXXX', { debug_mode: true });You can also use Google Tag Assistant preview to confirm that the tag is present and that the browser registers the interaction.
Common errors
A click may not appear as outbound when:
- The destination domain is listed in cross-domain measurement settings.
- The link is created after the page loads and your tagging setup does not observe it.
- JavaScript cancels the click before GA4 can send the event.
- A consent or content security policy prevents the Google tag from sending data.
- Another tag sends a custom event while enhanced measurement also sends
click, creating duplicate reporting.
If you need to distinguish pricing links, partner referrals, or checkout starts, use a custom event with a clear name. Keep enhanced measurement enabled for general coverage when it does not conflict with your tagging plan.
Exercise
A visitor clicks from docs.example.com to vendor.example.net. The vendor domain is not configured for cross-domain measurement. Which event and parameter should you expect?
Show answer
Expect the click event with outbound: true, plus parameters such as link_url and link_domain.