Early Black Friday: Divi Doctor Lifetime for $129 (unlimited sites). Ends Cyber Monday. 14-day money-back guarantee.

Pro features

Yem Links Pro adds targeting, split tests, analytics, link expiry, automatic linking and more to Yem Links. Each section explains what a feature does, where to find it, how to set it up and its limits.

Per-link options are in the Advanced Options section at the bottom of the link panel: open Yem Links → All Links, then click Add New Link or a link’s Edit icon. Site-wide features have their own screens under Yem Links. Every feature needs an active license; see Install Yem Links Pro.

Yem Links Pro Advanced Options in the link panel: Ghost Mode, tracking pixel, expiry, geo and device targeting, A/B split test and QR code
The Advanced Options section of the link panel, where every Pro link feature lives.

Geo and device targeting

Send visitors to a different URL depending on their country or the kind of device they use. For example, send visitors from the United Kingdom to a UK store and everyone else to the international one.

Set up country rules

  1. Open the link and find Geo Targeting in Advanced Options.
  2. Click + Add country rule.
  3. Choose a country and enter the URL for visitors from there.
  4. Repeat for other countries. To catch every country without its own rule, add a rule for Everyone else (default).
  5. Click Save Link.

The country list has 56 countries. To delete a rule, click the Remove (×) button at the end of its row.

Yem Links doesn’t look up countries itself. It reads the visitor’s country from your host or CDN: Cloudflare’s CF-IPCountry header (sent when Cloudflare’s IP Geolocation option is on), an X-Country-Code header, a GEOIP_COUNTRY_CODE server variable, Vercel’s country header, or the PHP GeoIP extension. Without one of these, country rules never match; device rules and the Everyone else (default) rule still work.

Set up device rules

Under Device Targeting, enter a URL next to Mobile, Tablet or Desktop, then save the link. Leave a box empty to use the main destination for that device.

The device is worked out from the browser’s user agent. iPads, Kindles and Android devices that don’t report themselves as mobile count as tablets; iPhones and other phones count as mobile; everything else counts as desktop.

Which rule wins

An exact country rule wins over a device rule, and a device rule wins over Everyone else (default). If no rule matches, the visitor gets the main destination, or a split-test variant if the link has a test. See How Pro chooses the destination.

A/B split tests

Share a link’s traffic between two or more destinations by weight, for example to compare two landing pages.

  1. Open the link and find A/B Split Test in Advanced Options.
  2. Click + Add variant. The first click adds two rows.
  3. Enter a destination URL in each row and set its Weight from 1 to 100. New rows start at 50.
  4. Click Save Link.

Each click picks a variant at random, in proportion to the weights: with weights of 70 and 30, about 70% of clicks go to the first URL. The choice is made for every click, so a returning visitor can land on a different variant.

While a test has two or more variants, it replaces the main Destination URL. To end the test, remove rows until fewer than two are left, then save. Country and device rules still win over the test.

  • Yem Links doesn’t report clicks per variant. Measure the results at the destinations, for example in your affiliate network’s reports or with a different tracking parameter in each variant URL.
  • The health check and the broken-link monitor check only the main Destination URL, not the variants.

Click analytics

Pro logs every counted click with its date and time, the referring page, the country (when your host or CDN reports it), the device type, operating system and browser, and the IP address shortened so it doesn’t identify one device (the last part of an IPv4 address and the last half of an IPv6 address are replaced by zeros). Bots are always left out of the reports.

The Analytics screen

Go to Yem Links → Analytics and choose a period: Last 24 Hours, Last 7 Days, Last 30 Days (the default) or All Time. The screen shows:

  • Clicks (bots excluded): the total for the period
  • Top Link: the link with the most clicks
  • Clicks per Day: a chart, with days in your site’s time zone
  • Top Performing Links: the 10 links with the most clicks

Breakdowns for a single link by country, device, browser and referrer are available through the API; see REST API key.

Yem Links Pro Analytics: clicks with bots excluded, top link, clicks per day chart and top performing links
Analytics for the last 30 days, bots excluded.

Limits and housekeeping

  • Clicks are logged only while Pro’s license or trial is active. Clicks from before that aren’t in the log, so totals can be lower than the Clicks column.
  • A daily clean-up deletes click logs older than the number of days in Click Log Retention (days) (90 unless you change it; 0 keeps them forever), so All Time covers that period. See Settings reference.
  • Deleting a link deletes its click log.
  • Yem Links → Tools has a Database Hygiene section. Optimize Tables optimizes the Yem Links database tables, and Purge Old Click Logs deletes click logs older than your Click Log Retention (days) setting straight away (nothing, if it is 0).

Link expiry and click limits

Stop a link from sending visitors to its destination after a set date and time, after a number of clicks, or both. After that, visitors go to a fallback URL instead.

  1. In Advanced Options, set Expiry Date, Max Clicks or both. The expiry date uses your site’s time zone, which is shown below the field.
  2. Click Save Link.
  3. To send expired links somewhere other than your home page, go to Yem Links → Settings, set Expired Link Fallback URL under Analytics & Redirect Fallbacks and click Save Settings. This one URL is used for every expired link.
  • Max Clicks is compared with the link’s total click count, the number in the Clicks column, so clicks made before you set the limit count toward it. 0 or an empty field means no limit.
  • Visits to an expired link aren’t counted. Expired links never show a pixel page or a cloaked frame; they redirect straight to the fallback.
  • Expired links keep the status Active in the list. The Auto-Linker and the Link in Bio page skip them.
  • To bring a link back, clear or move the expiry date, or raise Max Clicks.
  • Expiry only applies while Pro’s license or trial is active.

Auto-Linker

The Auto-Linker turns words and phrases in your content into short links when a page is displayed. Your posts aren’t changed in the database, so turning the Auto-Linker off removes the links again.

Set it up

  1. Go to Yem Links → Auto-Linker.
  2. Under Keywords, type a word or phrase, pick a link from Choose a link… and click + Add. Keywords are saved as soon as you add them. Only Active links are listed.
  3. Under Auto-Linker Settings, tick Automatically link keywords in posts.
  4. Set Max Links per Post (1 to 20; default 3). To skip some posts or pages, list their IDs in Exclude Post/Page IDs, for example 12, 45. Leave Never link inside headings (H1–H6) ticked unless you want links in headings.
  5. Click Save Auto-Linker Settings.

How keywords are matched

  • Matching ignores case and only matches whole words, so host doesn’t match inside hosting.
  • Longer keywords are tried first, so WordPress hosting wins over WordPress.
  • Only the first match of each keyword in a post becomes a link, up to Max Links per Post in total.
  • Text that’s already a link, and text inside code, preformatted text, scripts, styles, form fields and buttons, is never linked. Headings are skipped while the headings option is ticked.
  • It works on content displayed through WordPress’s standard content filter, which covers posts, pages and most custom post types. It doesn’t run in feeds, previews or the admin.
  • Auto-links carry the class yl_autolink and the link’s own nofollow and sponsored settings. Keywords that point to Draft, Archived or expired links are skipped.
  • To remove a keyword, click its trash icon and confirm. Deleting a link also removes its keywords.

Affiliate disclosure

Add a disclosure notice automatically to any post that contains a Yem Link.

  1. Go to Yem Links → Auto-Linker and scroll to Affiliate Disclosure.
  2. Tick Add a disclosure to posts that contain Yem Links.
  3. Edit Disclosure Text. Basic HTML, such as links and bold text, is allowed.
  4. Choose a Position (Before content or After content) and a Style (Italic text, Boxed notice or Plain).
  5. Click Save Disclosure.

A post counts as containing a Yem Link when it links to one of your short links (an address on your site that starts with your base prefix, such as /go/) or has an Auto-Linker link. That covers Yem Link blocks, product boxes and short links you pasted by hand. Links to other sites don’t count, even if their address contains /go/. The disclosure appears on pages and custom post types as well as posts, but not in feeds.

Ghost Mode and other redirect types

Ghost Mode

Tick Ghost Mode in Advanced Options to clean up the redirect. Ghost Mode:

  • removes analytics and ad-click parameters from the destination URL: utm_source, utm_medium, utm_campaign, utm_term, utm_content, fbclid, gclid, gclsrc, dclid, msclkid, mc_cid, mc_eid, _ga and _gl. Affiliate and partner IDs, such as ref, aff_id, partner or click_id, are kept, so the merchant still credits you.
  • sends a Referrer-Policy: no-referrer header, so the destination doesn’t learn which page the visitor came from

Ghost Mode cleans the main Destination URL and the broken-link fallback only. URLs from targeting rules and split-test variants are used as you entered them, and parameters forwarded from the visitor are added after the clean-up.

Forward URL parameters

Forward URL parameters to the destination is ticked by default. It passes everything after the question mark in the short link on to the destination, so a visit to /go/shoes/?utm_source=newsletter arrives with utm_source=newsletter. If the destination already has a parameter with the same name, the destination’s value is kept, so visitors can’t replace your affiliate tag with their own. Untick the box to drop visitor parameters.

Cloaked, JavaScript and meta refresh redirects

Pro adds three options to Redirect Type. Unlike 301, 302 and 307, they answer with a small HTML page that sends the visitor on. In the links list, their type shows as Cloak, JS or Meta.

OptionWhat the visitor gets
Cloaked (frame) – ProThe destination loads inside a full-window frame, so the address bar keeps showing your short link and the tab shows the link’s Title. Many sites refuse to load inside a frame on another site, which leaves a blank page, so test every cloaked link.
JavaScript – ProA page that redirects with JavaScript, with a meta refresh for browsers that have JavaScript turned off.
Meta refresh – ProA page that redirects straight away with an HTML meta refresh.

If Pro becomes inactive, links that use these options redirect with a 307 instead, and the link panel shows their type as Add-on 999 (inactive), Add-on 998 (inactive) or Add-on 997 (inactive) until you choose a standard type.

Tracking pixel page

Enter an ID in Tracking Pixel ID to fire an ad pixel before the redirect. Visitors see a short Redirecting… page for about a second while the pixel loads.

  • A number, such as 123456789, loads the Meta (Facebook) Pixel with that ID and tracks a page view.
  • An ID starting with G-, GT- or AW- loads the Google tag for that ID.
  • Any other format shows the page without loading a pixel.

A pixel ID takes priority over the redirect type: the visitor always sees the pixel page first, then goes to the destination.

QR codes

Generate a QR code for any saved link and download it as an SVG file, which stays sharp at any print size.

  1. Open the link with its Edit icon. A new link has to be saved first.
  2. In Advanced Options, click Generate QR Code.
  3. Click Download SVG below the preview. The file is named qr- followed by the slug.

The code contains the short link, not the destination. Scans count as clicks and follow your targeting rules, and you can change the destination later without reprinting. Changing the slug or the base prefix does break printed codes. The code uses error correction level M, so it still scans with some damage.

The monitor checks your active links’ destinations in the background, keeps a list of broken ones, emails you when it finds new problems and can send visitors to a fallback URL until you fix them. It’s on Yem Links → Tools under Broken Link Monitor.

How it checks

  • A background task runs once a week through WP-Cron. Each run checks every active link. On sites with many links, a run that takes longer than about 15 seconds continues automatically a couple of minutes later, so a full pass still finishes the same day.
  • Click Scan Now to check every active link immediately. Keep the page open while it runs; if it stops, click Scan Now again to resume. Manual scans don’t send email.
  • A destination that returns a status of 400 or higher is flagged straight away, except 401, 403, 405 and 429: those usually mean the shop blocks automated requests, not that the page is gone, so they aren’t flagged. One that can’t be reached at all is flagged only if it fails on two scans in a row, so a brief network problem doesn’t trigger an alert.
  • Each request waits up to 5 seconds and follows up to three redirects. Like the free health check, it tries a HEAD request first and retries with GET, here also when it gets a 429.
  • It checks only each link’s main Destination URL.
  • WP-Cron runs when your site gets visits, so on a quiet site the weekly run can start late.

The broken links list

Each flagged link shows its status code (or Unreachable), slug and destination. A link drops off the list by itself when a later scan finds it working. After you fix a destination, click Mark fixed to remove it from the list now; if it’s still failing, the next scan flags it again.

Email alerts

When a weekly run flags new broken links, the site’s administration email address (set in Settings → General) gets an email with a subject such as [Yem Links] 2 broken link(s) detected on Your Site. It lists each short link and destination, with a link to the Tools screen.

Fallback URL

In Yem Links → Settings, under Analytics & Redirect Fallbacks, set Broken Link Fallback URL to send visitors of flagged links somewhere useful, such as a category page, until the link works again or you mark it fixed. Leave it empty to keep sending visitors to the original destination. Targeting rules and split tests take priority over this fallback.

Note: Some shops block automated requests, so the monitor gets a 401, 403, 405 or 429 while the page works fine in a browser. The monitor doesn’t flag those answers, so real visitors aren’t sent to the fallback. A link that is really gone usually answers 404 or 410.

Build a simple, mobile-friendly page that lists links you choose, for the link field on your social media profiles. It’s served at its own address, such as yoursite.com/bio/, and doesn’t use your theme.

  1. Go to Yem Links → Link in Bio.
  2. Set Page Address (default bio), Display Name (default: your site title) and Bio. For a profile picture, paste an image URL into Avatar Image URL; you can upload the image to the Media Library and copy its file URL.
  3. Choose a Theme: Light or Dark.
  4. Under Links to Show, tick the links to include.
  5. Click Save Link in Bio, then View Page to see the result.
  • Each link appears as a button labelled with its title (or slug). Buttons open in a new tab and go through the short link, so clicks are counted. They don’t carry nofollow or sponsored attributes.
  • Links appear in the same order as the Links to Show list, which is sorted by title. Draft, Archived and expired links are hidden.
  • If a page or post already uses the same address, the Link in Bio page replaces it. Choose an address nothing else uses.
  • The page is only served while Pro’s license or trial is active.
Yem Links Pro Link in Bio settings screen
Link in Bio settings.
A Link in Bio page on a phone, with a title, a short bio and six link buttons
The Link in Bio page on a phone.

Product box block

The Yem Product Box block shows a product card with an image, title, star rating, description, price and a button, all linking through one of your short links.

  1. In the block editor, add the Yem Product Box block. It’s in the Widgets category.
  2. In Yem Link, type part of the link’s title, slug or destination, then pick the link from the list. Only Active links are listed.
  3. Fill in Title (leave it empty to use the link’s title), Description, Image URL, Price, CTA Button Text (default Buy Now) and Rating (0-5). A rating of 0 hides the stars.
  4. Save the post and view it. The editor shows the block’s fields, not the finished card.

Once you pick a link, the block shows its slug and its link ID. Click Change to pick a different link. For the shortcode below, you can also find a link’s ID at the top of its edit panel on All Links, for example Edit Link (ID 12).

Every link in the card opens in a new tab and carries the link’s nofollow and sponsored settings. The card only appears while the link is Active: for a Draft or Archived link, or an ID that doesn’t belong to a link, the block shows nothing.

Shortcode for the classic editor

In the classic editor or a shortcode block, use [yem_product] with the same options. Only id is required:

[yem_product id="42" title="Blue Widget" description="Our top pick for small desks." image="https://example.com/wp-content/uploads/widget.jpg" price="$29" cta="Check price" rating="4"]

Import from other link plugins

Bring links over from Pretty Links, ThirstyAffiliates or BetterLinks. The importer reads their data straight from the database, so it works even if the other plugin is deactivated.

  1. Go to Yem Links → Tools and find Competitor Import.
  2. Click Find Importable Links. Each plugin whose data is found on your site is listed with its number of links. If there’s none, you see No supported link plugins found on this site.
  3. Click Import next to a plugin and confirm.
  4. When it finishes, a summary such as Imported 48, skipped 2. appears. If some links couldn’t be imported, it also says how many, for example a link whose destination isn’t an http:// or https:// address.
SourceWhat’s imported
Pretty LinksSlug, destination, redirect type, name (as the title), description and nofollow.
ThirstyAffiliatesPublished links only: slug, destination and title. Nofollow is turned on and the redirect type is 307.
BetterLinksSlug (the last part of its short URL), destination, redirect type, title and nofollow.
  • A link is skipped if its slug already exists in Yem Links or is empty, so running an import again is safe.
  • Imported links are Active. Click counts, categories, tags and the sponsored setting aren’t imported.
  • Slugs are cleaned the same way as new slugs, so characters such as slashes are removed.
  • Redirect types carry over where Yem Links has an equivalent: 301, 302 and 307 stay as they are, and cloaked, JavaScript and meta refresh redirects become the Pro types of the same name. Anything else, such as a pixel or bar redirect, becomes 307.

Your posts still contain the old plugin’s short links. Those addresses keep working with Yem Links only if they use the same prefix and slug, so consider setting Base Slug / Prefix to the old plugin’s prefix before you deactivate it. See Change the base prefix.

REST API key

Pro adds API routes for analytics and bulk link creation that scripts can call with an API key instead of a WordPress login.

Find your key

Go to Yem Links → Settings and scroll to REST API Key. The key is created automatically. Click Copy to copy it, or Regenerate to replace it; apps using the old key stop working straight away.

Routes that accept the key

MethodRouteWhat it does
GET/yem-links/v1/analytics/overviewThe click total, top 10 links and clicks per day for all links. Add ?period= with 24h, 7d, 30d or all; the default is 30d.
GET/yem-links/v1/analytics/{id}One link’s click total, with breakdowns by country, device, browser and referrer, clicks by hour and weekday for the last 7 days, and clicks per day. Takes the same period parameter.
POST/yem-links/v1/links/bulkCreates links from a JSON array of objects with url and slug, and optionally title and redirect_type. Each link gets the same checks as the link panel (an http:// or https:// destination, a slug of up to 100 characters that isn’t taken, a title of up to 255 characters, a redirect type that exists). Returns {"created": 10, "errors": 2, "failed": [...]}, where each entry in failed gives the item’s index, slug, an error code and a message. New links are Active.

Send the key in the X-Yem-Api-Key header; keys in the URL aren’t accepted. A missing key returns 401 and a wrong one 403. Requests authenticated as an Administrator, for example with an application password, work without the key. The standard link routes, /yem-links/v1/links and /yem-links/v1/links/{id}, don’t accept the key; they need a WordPress login such as an application password (see Authentication).

curl "https://example.com/wp-json/yem-links/v1/analytics/overview?period=7d" \
  -H "X-Yem-Api-Key: your-api-key"

How Pro chooses the destination

When a link uses several Pro features, Yem Links checks them in this order and uses the first that applies:

  1. Expiry: a link past its expiry date or click limit goes to the Expired Link Fallback URL.
  2. An exact country rule.
  3. A device rule.
  4. The Everyone else (default) country rule.
  5. A split-test variant.
  6. The Broken Link Fallback URL, if the broken-link monitor has flagged the link.
  7. The main Destination URL.

Ghost Mode cleans the URL when it comes from one of the last two steps, and visitor parameters are forwarded unless the link has expired. Finally, a Tracking Pixel ID shows the pixel page; otherwise the Redirect Type decides how the visitor is sent on.