Websites, tracking IDs and webhook

Add a website, enter tracking IDs per affiliate program, control replacement products and set up the webhook.

You add every website on which affilinode boxes appear under "Websites". A website gets its own tracking IDs, keys for the WordPress plugin and an embed code. The page of a website has the sections "Settings", "Plugin and API keys", "Embedding", "Tracking IDs" and "Webhook".

Website settings

  • "Domains": without protocol, for example www.example.com.
  • "Default country" (for example DE) and "Default language" (for example de-DE), plus further "Languages" and "Allowed countries" (empty = all countries).
  • "If a product is not available": "Successor first, then alternative (default)", "Alternative first, then successor", "Successor only", "Alternative only" or "Show no replacement". Another shop with the same product always comes first; a replacement always carries a note.
  • Optional: "Show a replacement for discontinued products too, not just for temporarily sold out ones".
  • "Offers by visitor country": determine the visitor's country, preferred partners, shops taken into account and exceptions per country (a help article of its own).
  • "Show the "Made with affilinode" link below the boxes": off by default; applies to embedding (always on there in the free Basic plan) and is the website default in the WordPress plugin – there you decide yourself in the plugin settings (see "Plan and quota").

Tracking IDs

In the "Tracking IDs" section, you enter this website's identifier for each affiliate program: the "Partner tag" for Amazon, the "Clickref" for Awin, the "Campaign ID (EPN)" for eBay, and optionally Matomo campaign values for your own WooCommerce shop. Only then do the links earn commission and can earnings be attributed to the website.

For WordPress networks there are "Subsites (multisite)": if the plugin is active network-wide with one key, each subsite registers itself. Without an entry of its own, a subsite uses the tracking IDs of the website ("Inherits from the site"); with its own value it says "Own value".

More tracking IDs (reporting only)

Below each affiliate program with a site identifier you find "More … (reporting only)": old or additional tracking IDs (Amazon), clickrefs (Awin), campaign IDs (eBay) or the networks' sub-IDs (Tradedoubler, ADCELL, CJ, Webgains, own feed). Earnings with these values are attributed to the same website or subsite in the reports; only the main value above them still goes into the links. At most 50 per affiliate program.

  • The WordPress plugin enters the values it finds by itself: when you save a post (field "Amazon tracking ID", tracking="…", affiliate links in the text), when migrating from AAWP or the Affiliate Toolkit, and with "Reconcile tracking IDs now" (plugin settings → Matomo tracking).
  • The default tracking ID from AAWP or from the most used ATKP shop only becomes the main value if there is none yet – an existing one is never replaced.
  • If the same value is entered for two websites, earnings with it stay "unassigned" – the plugin shows such values. Remove it from the wrong website then.
  • The attribution works for Amazon, Awin and eBay (they have reports). Sub-IDs of the other networks are stored and count as soon as there is a report import for the network.

Webhook

  1. Under "Settings" of the website, enter the "Webhook URL (optional)". For the WordPress plugin this is https://<your-domain>/wp-json/affilinode/v1/webhook.
  2. In the "Webhook" section, click "Generate secret" and copy the secret.
  3. In the plugin under "Settings" → "API access", enter it in "Webhook secret" and save.
  4. Back in the admin, click "Test webhook".

Without a webhook, the plugin refreshes its data in the background after the cache duration. With a webhook, affilinode reports price changes immediately, and the plugin also clears the affected posts in page caches such as LiteSpeed, WP Rocket or Cloudflare.

Deleting a website permanently removes it along with its API keys and tracking IDs.

All help articles · Still a question? Write to us