Outbound Links
When a visitor clicks a link to another site, the Plausible script sends the goalOutbound Link: Click. The goal has one custom prop, url, which holds the link's address.
Set up
- Add the Plausible template as a tag. Set Type to Initialization and enter your Script ID.
- Under Options, tick Outbound Links. It is on by default.
- Publish the container, or open GTM preview mode on this site.
- In Plausible, create a custom event goal named
Outbound Link: Click. - If the
urlprop does not show up, add it under the site's custom properties settings.
Test
Click each link. Open the Network tab first and filter by event.
Expect
- Each outbound link sends an
Outbound Link: Clickrequest before the browser leaves this page. - The request has a
urlprop with the link's address, for examplehttps://example.com/. - The internal link sends no
Outbound Link: Clickrequest. - The link to
hricha.comshould count as outbound, because its host differs fromplayground.hricha.com. Confirm it. - With Outbound Links unticked in the tag, none of the links send the goal.