Hyperlink ping attribute
A link attribute that makes the browser send a POST to extra URLs when the link is clicked.
In one line
Can tell extra web addresses when you click a link, without you noticing
A link attribute that makes the browser send a POST to extra URLs when the link is clicked.
Lets a site or ad network count clicks without a redirect or script. Body is the text PING, with Ping-From and Ping-To headers. Firefox ships it disabled by default, and blockers and Brave drop it.
What it can and can't do
What the user does: You click a link that has a ping address attached
It can
- Send a small message to extra addresses the moment you click
- Report which link you clicked and which page you were on
- Work even when the link opens a new page right away
It cannot
- Run unless you click that specific link
- See what you do after the click on the next site
- Work in Firefox by default, where it is switched off
- Show a prompt or any sign that it happened
How it differs between platforms: Chrome, Edge, Safari and Samsung Internet send it. Firefox has it turned off by default.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 12 | 2011-06-07 | None |
| Edge | Supported | 17 | 2018-04-30 | None |
| Firefox | Behind a flag | Not available | Not listed | Off by default, browser.send_pings |
| Safari | Supported | 6 | 2012-07-25 | None |
| Safari on iPhone | Supported | 6 | 2012-09-10 | None |
| Chrome on Android | Supported | 18 | 2012-06-27 | None |
| Samsung Internet | Supported | 1.0 | 2013-04-27 | None |
How a site asks for it
| API | <a href=... ping="https://track.example/"> |
| Browser compat keys | html.elements.a.ping |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Fire and forget on click |
| How to take it back | Clear site data, browser privacy settings |
| Inside an iframe | Not listed |
Data you get
What comes back: Ping POST
Shape: event
How often: per click
No individual data fields. The signal is the access itself.
Technical limits
- Only on link clicks, not on form submit
- Disabled by default in Firefox
- Cookies for the ping origin are sent
- No response readable
The story
What it is
A link tag that makes the browser quietly tell another address when you click the link.
For you
You click a link and go where you expected. You do not see that a tiny note was sent to a counting server as you left. It only happens in browsers that allow it, and Firefox keeps it off by default.
For makers
It lets a site count clicks with no redirect and no script, so the link feels fast. Search and ad systems like it for outbound click counts. It is easy for blockers to drop, so makers trust it less than scripts.
Where you see it
| Type | Example | Apps |
|---|---|---|
| ads | You click a sponsored result and the browser pings the ad system to count the click, while you go straight to the advertiser page. | Google Search |
| analytics | A news site counts how many readers click out to a partner article without adding any slow redirect. | None named |
| shopping | A coupon site counts clicks to each store link so it can bill stores for traffic. | RetailMeNot |
| social | A forum counts outbound clicks on shared links to show which posts send people away. | |
| games | A game portal counts clicks on Play now links to partner game sites, so it can pay a revenue share. | CrazyGames, Poki |
| security | A security team can spot odd ping targets in a page, which is a sign a link is being used for hidden counting. | None named |
Risks
- Silent click counting
- Not blockable by the person without a setting
What the platform says
- Mozilla: a ping attribute. Developer docs describe ping as a list of addresses that get a short POST when a link is followed.
Good uses and abuse
Legitimate uses
- Click counting without redirects
Known abuse
- Hidden click tracking
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 3 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2011-06, Chrome 12: Shipped
- 2013-01, Safari 6: Shipped in Safari
Related capabilities
Related
- navigator.sendBeacon. Can send a small report that the browser delivers even as you leave the page
Sources
How well checked: Based on official documentation.