For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tracking links

For tracking to work correctly, follow these requirements:

  • The user must be registered and logged in to the site.

  • The user must click a special link containing a SubID. You can create such links with the shortcodes below. SubID support is also available in Content Egg and Affiliate Egg plugins, and in some themes such as Rehub.

The plugin provides several shortcodes for creating tracking links.

If a user is not logged in and clicks such a link, it works as a plain affiliate link without tracking or cashback.

The following shortcode creates a tracking link for the AliExpress merchant:

[tracking-link advertiser="aliexpress.com" anchor="Click here for cashback!" /]

The safer, recommended approach is to use the Advertiser ID instead of a domain and also specify the module name:

[tracking-link advertiser=6115 module=Admitad anchor="Go to Aliexpress" /]

You can also create a link pointing directly to a product page instead of the merchant's homepage:

[tracking-link advertiser=6115 module=Admitad product="https://aliexpress.com/item//32218315642.html" target="blank"]Product tracking link[/tracking-link]

All available shortcode parameters

Parameter name

Synonym

Required?

Description

advertiser

advertiser_id

Yes

Merchant domain or Advertiser ID

module

module_id

No

Module name. For example: Admitad, Awin, Demo.

anchor

text

No

Link anchor text. If omitted, the URL is used as the link text.

product

product_url

No

URL of the product.

class

No

CSS class for the link.

target

No

target attribute.

rel

No

rel attribute. Defaults to nofollow.

WordPress doesn't officially support shortcodes inside HTML, but it still works in the HTML editor.

In the Gutenberg editor, add a Custom HTML block, or switch to the Code editor in the Classic Editor.

You can then add an href attribute to create a custom link:

Last updated