Skip to content

Link Manager and URL masks

Link Manager turns each affiliate or external link into a shortcode. Change the URL once in Link Manager and every page using the shortcode updates. It also counts impressions and unique clicks, and can mask links behind your own domain.

  1. Go to Xagio > Link Manager.
  2. Select Create Shortcode.
  3. Fill in the fields. The preview updates as you type.
    • Title: the link text, for example “Buy product here!”.
    • Shortcode: the shortcode name, for example my_shortcode_name.
    • URL: the destination, such as your affiliate link.
    • Internal Name: used in the masked URL.
    • Image: optional. When set, the link shows this image instead of the title.
    • Open in New Tab, No Follow Link and Mask URL: on or off.
  4. Select Save.
  1. Select Copy Shortcode on the shortcode row. It copies [my_shortcode_name].
  2. Paste it into any page or post.

With Mask URL on, the link points to your own site (for example yoursite.com/?xredirect=internal-name) and then forwards to the destination. Copy Masked URL copies that address so you can use it anywhere.

Each row shows Impressions, Clicks (unique) and CVR (conversion rate, %) for the shortcode and for its masked URL. Select View tracking chart to see them over time, and Reset to clear the data.

Duplicate this shortcode, Edit this shortcode and Delete this shortcode are on each row. Use Search and Apply Filters to find shortcodes by shortcode, title or URL.

Masked links look like yoursite.com/?xredirect=internal-name. The xredirect part is the mask. You can change it.

  1. Go to Xagio > Link Manager and open the Mask Settings tab.
  2. Enter a new value in Your URL Mask. The Masked URL preview shows the result.
  3. Select Save Changes.

The mask applies to the whole site. If another plugin or theme also reads a parameter such as ?id=, the two can conflict. Use something unique, such as xagio_id or xagio_goto.

Links that use the default xredirect keep working after you change the mask.

Export your shortcodes to back them up or copy them to another site running Xagio.

Export

  1. Go to Xagio > Link Manager.
  2. Select Export.

The CSV holds each shortcode’s name, shortcode, URL, title, new tab, nofollow, mask and image settings, plus your URL mask.

Import

  1. On the other site, go to Xagio > Link Manager and select Import.
  2. In Import Links, drag in the CSV file exported from Xagio, or select it.
  3. Select Upload.

The file’s URL mask replaces the mask on this site. Tracking statistics are not included.