Link in Bio Report

By Razorfrog Web Design

0+ active installationsVersion 2.2.2

Counts taps on your link-in-bio pages without cookies and emails you a weekly or monthly report, with a section for each page.

Description

Your Instagram or TikTok bio points to a page on your own site, like example.com/links/. Link in Bio Report tells you how many people visited that page and which buttons they tapped, and emails you the numbers every week or month. There’s nothing new to log in to and no outside service.

  • Works with the page you already have. Build the links page with the block editor, any theme or any page builder. Every outbound link on it is tracked automatically, including buttons you add later.
  • Several links pages, one report. One page per Instagram account or per location, say. The email has a colored section for each page plus a total.
  • Weekly or monthly. Pick the day and time, or have it sent on the 1st for the month before.
  • No cookies. Nothing is stored in visitors’ browsers. A visitor is a salted one-way hash of IP address and browser, and the IP address is never stored.
  • Honest numbers. Bots, link previews, browser prefetches, your own logged-in visits and repeat taps are left out.
  • Works with page caching. Visits are counted by a small beacon, so they’re counted even when the page comes from a cache or CDN.
  • A starter links page. No links page yet? Create one from the starter layout (logo, name, buttons and social icons) with one click, or pick the “Links page” pattern in the block editor.
  • No cookie banner on the links page. The page sets no cookies of its own, so the banner from GDPR Cookie Compliance is left off there (it stays on everywhere else). Other consent plugins can be added with a filter.

How it works

  1. In Settings → Link in Bio Report, choose your links pages and who gets the report.
  2. When a links page is shown, each http(s) link on it is pointed at /go/{slug} on your site. The page itself keeps its real URLs, so you edit it as usual.
  3. A tap on /go/{slug} is counted, then the visitor is sent on to the real destination.
  4. The report lists, for each page, how many people visited, how many visits and taps there were, the share of visitors who tapped a link, and every link by taps.

The slug and the label in the report come from the nearest heading plus the button text, so “Order online” under two different locations is counted separately.

Privacy

The plugin sets no cookies and uses no outside services. For each visit or tap it stores the time, the page or link, and a 16-character visitor key: a salted one-way hash of the IP address and user agent that can’t be turned back into either. IP addresses are never stored. A short-lived counter keyed by a hash of the IP address limits visits counted from one address to 30 an hour.

The plugin adds suggested text to Settings → Privacy → Policy Guide for your privacy policy.

Installation

  1. Install and activate the plugin, then go to Settings → Link in Bio Report.
  2. Click Create a links page, or choose a page you already have (a page at /links/ is picked automatically).
  3. Point each button straight at where it should go (your shop, menu, map) and publish the page. Don’t add /go/ yourself: the plugin does that when the page is shown.
  4. Copy the address shown under Getting started into your Instagram or TikTok bio.
  5. Check who gets the report and when, and click Save and send a test report now to see one.

If a security plugin blocks the REST API for visitors, allow /wp-json/link-in-bio-report/v1/view so visits can be counted.

FAQ

Do I need to change the links on my page?

No. Leave the real URLs in place. The plugin rewrites them to /go/ links when the page is shown, and leaves links that already point at /go/ alone.

What isn’t counted?

Logged-in editors, page previews, obvious bots and link previews, browser prefetches of /go/ links, taps that didn’t come from your own site (crawlers and link scanners), double taps within a minute, refreshes within 30 minutes, and more than 30 visits an hour from one IP address.

How long is the data kept?

Two years, then it’s deleted. Deactivating the plugin keeps the data; deleting the plugin removes its table and settings.

Can I track a /go/ link that isn’t on a links page?

Yes. Open Advanced and add it under Extra links, one per line: Label | slug | https://destination-url. It then works at /go/slug/ anywhere, such as in an email or on a flyer QR code, and is counted under the main links page.

Does it work with my consent plugin?

GDPR Cookie Compliance is supported out of the box. For another consent plugin, add a callback that hides its banner with the link_in_bio_report_consent_handlers filter:

add_filter( 'link_in_bio_report_consent_handlers', function ( $handlers ) {
    $handlers['my-consent-plugin'] = function ( $page_id ) {
        add_filter( 'my_consent_plugin_show_banner', '__return_false' );
    };
    return $handlers;
} );

Each callback runs on the wp action of a links page and receives the page ID. To keep the banner on a particular page, return false from link_in_bio_report_hide_cookie_banner, which receives the setting and the page ID.

My site is behind Cloudflare or another proxy. Do visitor counts still work?

The plugin reads the visitor’s address only from the server’s connection (REMOTE_ADDR), because proxy headers can be faked. Most hosts restore the real address there for Cloudflare traffic. If yours doesn’t, every visitor looks like the proxy, and you can pass the address your server trusts with the link_in_bio_report_client_ip filter. The address is only used to build an anonymous, salted key and is never stored.

Can the links page leave out my site’s header and menu?

Yes. Show the links pages on their own (on by default) shows only the page content, with your theme’s fonts and colors but without its header, footer and page title. Turn it off to show the page like any other. Developers can decide per page with the link_in_bio_report_own_page filter.

What are the /go/ addresses in the Tracked links table?

Each button is counted under an address like /go/order-online/, made from the nearest heading and the button text, so two “Order online” buttons under different headings are counted separately. On every links page but the first, the address starts with the page’s own address. You never need to type these; the plugin points the buttons at them when the page is shown.

Does it send data anywhere?

No. Everything is stored in a table in your own WordPress database, and the report is sent with your site’s own email (wp_mail).

Screenshots

Changelog

2.2.2

  • The report leaves out links with no clicks and says how many there were (“3 more links had no clicks.”).
  • The plugin’s page in Plugins links to its page on razorfrog.com.

2.2.1

  • Send report to and Reply-To are blank on new installs: the report and its replies go to the site’s admin email. Sites updating keep their addresses.
  • A “Getting started” box on the settings screen: create the links page, then copy its address for your bio. It warns about a links page that isn’t published yet and buttons that still link to “#”.
  • Links pages can be shown on their own, without the theme’s header, footer and page title (on for new installs; sites updating keep their pages as they are).
  • The links pages come first on the settings screen, and the starter page uses the site’s name.
  • No report is sent until a links page is published.
  • The Tracked links list fills in when a links page is published or saved, without waiting for a visit.
  • Suggested privacy policy text in Settings → Privacy → Policy Guide.
  • The cookie banner setting shows only when GDPR Cookie Compliance (or a consent plugin added with the filter) is active.
  • Extra links moved into a closed “Advanced” section.
  • Security: the visit counter’s rate limit uses only the server’s connection address (REMOTE_ADDR), not proxy headers that a visitor can fake. New link_in_bio_report_client_ip filter for sites behind a proxy that doesn’t pass on the real address.

2.2.0

  • First release on WordPress.org.