Settings of the WordPress plugin

The tabs under "affilinode" → "Settings": cache, appearance, disclosure, countries, geolocation, click tracking to analytics and more.

In WordPress you'll find the settings under "affilinode" → "Settings", divided into tabs. On multisite they are also in the network admin; each subsite can adopt or override individual values with "Use network value".

The tabs

  • "API access": "API key", "Webhook secret", "Demo mode" (local sample data instead of the API) and "Default country".
  • "Cache & performance": "Cache duration (minutes)" – after that, data continues to be served and is updated in the background. "Maximum price age (hours)" – older prices are hidden and "View current price" appears instead; Amazon prices never older than 24 hours, per box the attribute max_age. "Clear page caches after product changes" and "Cloudflare API token (optional)", below them the detected page caches and "Clear page caches now" (see below).
  • "Appearance": "Show replacement product", "Colour scheme", "Accent colour", "Button colour", "Button colour on hover", "Button size", "Corner radius (px)", the badge colors, "Custom button text" (with the placeholder {shop}), "Product title in boxes", "Show price signals", "Show Amazon sales rank", "Amazon buttons: add to the Amazon cart directly", "Show alternatives below product boxes", "Show 'At a glance' below product boxes", "Mini card when hovering over text links", "Electricity price for running costs (ct/kWh)", "Water price for running costs (€/m³ incl. waste water)", "Deals as RSS feed", "Output structured data (schema.org)", "Count clicks per box type", "Open links in a new tab", "Rank numbers in list grids" and "Custom CSS".
  • "Affiliate disclosure": "Show affiliate disclosure", your own label instead of "Ad", your own "Disclosure text", "Position", "Link to the disclosure page", "Amazon Associates disclosure", "Disclosure for buttons too" as well as "Price update time" ("Price updated 2 hrs ago" per offer: relative, date and time, or off) and "Position of the update time" (below the price or only in the price note).
  • "Languages & countries": "Country per language" – applies only without geolocation (see "Multilingual websites").
  • "Loading & geolocation": "Render mode" (hybrid, server, Ajax), "Allowed countries", "Country switcher in the price comparison" and "CDN country header".
  • "MaxMind GeoLite2": "Use the MaxMind database", "MaxMind account ID" and "MaxMind license key".
  • "Analytics click tracking": report clicks on affiliate links to Matomo (including event category, action, name and value), Google Analytics 4, Google Tag Manager and Umami – each target individually, with its own event name.
  • "A/B test", "Own redirects" (links via /go/… on your website), "Post check & weekly report", "Product pages" and "Compatibility" (Affiliate Toolkit shortcodes).

Own redirects (/go/…)

With "Route affiliate links through your own website", boxes, buttons and text links point to an address on your website such as /go/samsung-galaxy-s25-otto. A click on it is counted on your server and sent on to the affiliate link by redirect – with the same attribution to post and box type as the direct link. Under "Address of the redirects" you choose "Readable" or "Short" (/go/k3); both forms stay valid. The clicks are under "Reporting" → "Redirects".

  • Amazon links never run through the redirect: Amazon doesn't pay commission on purchases via redirects and requires links to visibly lead to Amazon. They always stay direct.
  • Individual advertisers of other networks also prohibit redirects – check the terms of your programs.
  • Bots, link previews and browser prefetching are not counted. Only daily totals per link and post are stored – no IP, no cookies, nothing goes to affilinode.
  • The /go/ addresses are blocked for search engines (noindex, robots.txt) and are never cached. If you have a robots.txt file of your own in the web root, add "Disallow: /go/" there yourself; if a CDN caches everything (e.g. Cloudflare "Cache Everything"), exclude /go/*.
  • After switching it on, clear the page cache so that cached pages get the new links. If you switch it off again, existing /go/ addresses keep redirecting.

Adjust the appearance

Under "Appearance" you set button size (small, medium, large), corner radius, hover color of the buttons and the badge colors. The preview below the fields shows sample products with your values before you save; with the mouse over a button you see the hover color. The plugin chooses the text colors of buttons, hover and badges automatically so that the contrast is sufficient.

  • Badge colors exist per kind: "Test winner" (texts with Testsieger, Test winner, Sieger, Winner), "Value for money" (Preis-Leistung, Preistipp, Spartipp, Best value) and all others. "Preis-Leistungs-Sieger" counts as value for money. "Automatic" means: like the other badges or the accent color. The same colors apply to the highlighted column in comparison tables.
  • There is no free field for custom CSS. You enter your own styles under "Appearance" → "Customize" → "Additional CSS" (in the site editor: "Styles" → "Additional CSS"). CSS you had entered in the settings before, the plugin shows once after the update to copy; it is no longer output.
  • The easiest way to adjust the look is through CSS variables on .acp, e.g. .acp{--acp-radius:4px;--acp-btn-h:48px} – in "Additional CSS".
                  --acp-accent, --acp-cta, --acp-cta-text, --acp-cta-hover, --acp-cta-hover-text (colors, on :root)
--acp-badge, --acp-badge-text, --acp-badge-winner, --acp-badge-winner-text, --acp-badge-value, --acp-badge-value-text
--acp-radius (box), --acp-radius-sm (inner), --acp-btn-radius, --acp-btn-h (height), --acp-btn-fs (font size), --acp-btn-px (padding)
--acp-bg, --acp-surface, --acp-text, --acp-muted, --acp-border, --acp-pad (per color scheme on .acp)
                

The embed for Ghost, Discourse and HTML (embed.js) has its own variables (--bg, --cta …, see "Embedding") and does not adopt these plugin settings.

Geolocation

The visitor's country is determined only in WordPress: first from a CDN header (e.g. Cloudflare), otherwise from the MaxMind database, otherwise the default country applies. Geolocation always takes precedence over language – the post's language only determines the texts. The IP does not go to affilinode and is not stored. The MaxMind database updates weekly; "Update the MaxMind database now" loads it immediately. Only "Allowed countries" are used.

Which shops a country shows and which partner takes precedence, you set in the dashboard for the website (see "Offers per visitor country"). Per box, shops="amazon,awin", prefer="amazon" and countries="DE,AT" override these rules or the allowed countries.

Multilingual websites

Boxes appear in the page's language: box texts, buttons and notes, data sheet labels, product titles and descriptions. The language comes from Polylang or WPML (language of the post or the request), from TranslatePress (language of the address, e.g. /en/) or otherwise from the website's language – on multisite per subsite. The language of your user profile plays no role, not even in the preview in the editor. Boxes loaded later keep the language of the page they are on.

  • The language only determines the texts, never the country. The country comes from geolocation; without it "Country per language" applies (if entered), otherwise the default country, and only at the very end the language's region.
  • If a translation is missing, the text appears in the base language, German – with a matching lang attribute so that screen readers and search engines read it correctly. Texts are never mixed.
  • You translate your own texts (button text, affiliate disclosure, Amazon notice) under "Languages" → "Translations" (Polylang) or with WPML String Translation.
  • Product pages: with Polylang or WPML, the automatic sync creates a product page per language (title and excerpt in that language) and links them as translations – hreflang and language switcher come from the language plugin. Existing pages without a language count for the default language.
  • Category hubs: translate the hubs' page with Polylang or WPML; each language uses its translation, hreflang and language switcher point to the same hub in the other language.

Analytics click tracking

The plugin reports clicks on affiliate links to the analytics service your site already includes – all targets are off by default and can be switched individually. It loads no tracker itself, sets no cookies and sends nothing as long as the tracker is missing (e.g. because the visitor hasn't consented). The data goes to your analytics service, not to affilinode.

  • Matomo: event via window._paq or window._mtm (Tag Manager, event acp_affiliate_click), as before.
  • Google Analytics 4: gtag("event", "affiliate_click", …) with transport_type "beacon" – the navigation doesn't wait.
  • Google Tag Manager: dataLayer.push({ event: "affiliate_click", … }). In Tag Manager, create a "Custom event" trigger with this name and pass the values as data layer variables to the GA4 event tag. If GA4 runs via Tag Manager, switch on only this option, not GA4 in addition – otherwise every click is counted twice.
  • Umami: umami.track("affiliate_click", …).
  • Sent along are shop, product (affilinode ID), product_name (shortened), box_kind (display), position (in lists), post_id, link_domain (only the link's domain, never the affiliate URL) and, with "Event value: price", also value and currency.
  • All boxes, text links ([affilinode_link]) and fields ([affilinode_field]) count, including those loaded later; middle-click and Ctrl-click as well, a double click only once.

Consent Mode with GA4: the plugin only calls gtag. Whether and how GA4 measures without consent is decided by your Consent Mode settings or your consent tool.

Tools

At the bottom of the page are "Test connection" (shows workspace and website), "Clear cache" (data is reloaded on the next request) and – with MaxMind – "Update the MaxMind database now".

With page caches such as WP Rocket or LiteSpeed Cache, exclude the address /wp-json/affilinode/v1/render from caching. The pages themselves may be fully cached.

Page caches (LiteSpeed, WP Rocket, Cloudflare …)

If affilinode reports changed products, lists or comparison tables by webhook, the plugin clears the posts with these boxes in the page caches: LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache, WP Fastest Cache, SiteGround Optimizer, Breeze, Nginx Helper and Cloudflare. This runs in the background: first the plugin reloads the product data, two minutes later it clears the pages. Pure price changes clear a post at most once an hour.

  • Which posts show which products, the plugin remembers when saving and when the pages are requested; it reads in the existing stock once in the background after the update.
  • If a product isn't there yet (e.g. just requested or in import), visitors see nothing at that spot. Such pages stay in page caches for only 5 minutes (Cache-Control s-maxage, LiteSpeed), and as soon as the product is there, the plugin clears the page. If a product is missing for longer than 7 days, the normal cache duration applies again.
  • Cloudflare: with the Cloudflare plugin, affilinode uses its clearing. Without the plugin, enter an API token with "Zone → Zone → Read" and "Zone → Cache Purge → Purge" under "Cloudflare API token (optional)" – the zone is found via the domain, clearing is done per address (30 per call, with a pause at Cloudflare's limit). With a token, the plugin also clears a saved post at Cloudflare.
  • "Clear page caches now" clears the caches of this website: the cache plugins completely, Cloudflare the home page and the posts with boxes. On multisite this applies per subsite.
  • For layers of your own (Varnish, another CDN) there is the action affilinode_purge_urls with the addresses and post IDs.

Export and import settings

At the very bottom, under "Export and import settings", "Download settings" downloads all the website's settings as a JSON file – including automatic linking and plan calculators. This is how you set up another website the same way or keep a backup.

  1. On the first website, click "Download settings".
  2. On the other website, choose the file and click "Check file". The preview shows every setting that would change, with current and new value – nothing is saved yet.
  3. "Apply changes" saves them, "Cancel" discards the file.
  • Secret keys (API key, webhook secret, Cloudflare token, MaxMind license key) are left out by default, unless you tick "Include secret keys". Then they are in the file in plain text – keep it safe and never pass it on.
  • Every value is checked as in the form (invalid colors and numbers outside the limits are dropped). Values not in the file stay; an empty key never overwrites a saved one. Custom CSS is not part of the file.
  • Multisite: in the network admin you export and import the network values (including MaxMind). A subsite exports only its deviations from the network and never adopts settings that apply only to the network.
  • Only administrators can export and import (capability manage_options, on the network manage_network_options).

All help articles · Still a question? Write to us