Changelog: Embed
Changes to the embed (embed.js): the script for static sites, Ghost, Discourse and other systems without a plugin. New features arrive without a change to the script tag unless stated otherwise.
14 October 2026
- Basket button for Amazon:
data-cart="1"additionally shows “Add to Amazon basket” on product box, card, price comparison, grid, list and comparison for Amazon offers. Lists, grids and comparisons also get “Add all to Amazon basket” (up to 10 products of the same marketplace).data-cart="0"switches it off in a box. Without specification, the website's setting applies (“Websites” → “Show basket button by default”, factory default off). The button appears only for Amazon offers with your partner tag and a current price; the notices under the box remain unchanged. In the generator there is the option “Basket button (Amazon)”. - “Accessories” box:
data-affilinode="accessories", or[affilinode_accessories], shows the accessories of a product (case, charger, cable …) grouped by type, with prices;data-idanddata-limitwork as with spare parts. The “Spare parts” box is now called “Matching spare parts” instead of “Accessories and spare parts”. - Variant selector for model products: The box, card and row of a model product show the “from” price and chips for colour (with a colour dot) and storage. The selection switches image, price and link without reloading. Combinations that do not exist cannot be selected; unavailable variants show “unavailable”.
data-variants="0"switches the selector off. Lists and comparisons show the model's “from” price. - Banner box with rule:
data-placementrefers to a banner box rule from the dashboard (automatic selection or fixed banner). Without a fixed banner ID, the service selects the banner automatically by width of the slot,data-format, country, language, priority, freshness and click-through rate. - Device + plans: views and selection:
data-view="compact"shows “Phone + plan” (the device and a few plans in lean rows).data-view="details"shows a spec sheet per plan with all known values.data-provider="telekom"anddata-network="o2"show only plans of one provider or network. Withdata-controls="1", visitors get selection fields for provider, network and sorting. Prices are labelled and state the total cost over the term.
- Basket button for Amazon:
13 October 2026
- New boxes: banner box (format adapts to the width of the slot, original banners only after consent, statistics per banner) and Look box (“Shop my Look” with clickable points).
- “Powered by affilinode” notice below the boxes: always on the free plan; selectable per website on paid plans (default off). Colour and language follow the page.
- Country approval: shops appear only in countries for which they are approved.
- Discount codes: the account's own discount codes appear first; copying is counted.
12 October 2026
- All boxes also embedded: product search, advisor quiz, compatibility check, alternatives, “Best in category”, “At a glance”, price-performance chart, ongoing costs, test rating, “A vs B”, coupons, pack sizes and “Back in stock” – as HTML placeholders or as shortcodes in Ghost and Discourse. Less frequently used boxes are loaded on demand when needed.
- Rebuilt in TypeScript with minification: the script is around 68 KB instead of 115 KB, and the lazy-loading module is 55 KB instead of 84 KB. The behaviour is unchanged.
- Offers per visitor country: the script takes the visitor's country (or
data-country), shows “Offers for Austria” with a switcher, and reloads all boxes on the page when the visitor changes country. Responses that depend on the visitor's country are no longer cached and served to other visitors. - Language follows the page: without
data-locale, the script takes the language from<html lang>. Pages withlang="en"now show English text. - Price freshness: “Price updated before …” per offer (
data-price-age: relative, date and time, or off); older prices (data-max-age, default 24 hours, Amazon never over 24, eBay 6) are hidden and replaced by “View current price”. - New options on the script tag:
data-shopsanddata-prefer(restrict or prefer shops),data-country,data-packs,data-coupons,data-stock-alert,data-autolink(automatic linking of product and category names in the text, default off),[affilinode_link]and[affilinode_field]in running text, and sorting and filtering per shortcode; unavailable single boxes are hidden. - Coupon box: discount codes can be copied with one click.
- Security: the live preview in the dashboard requires a signed token; statistics and error reports are limited per website and per day; comment areas are never converted; free-text labels in shortcodes from forums apply to the team only.
- Discourse component up to version 0.9.0 with all new boxes, price freshness and preview chips.
6 October 2026
- `data-links`: supported product links in the content (Amazon, eBay, Awin deep links, retailer links that affilinode knows) become product boxes or compact rows;
data-links-maxanddata-links-scopecontrol the number and scope. - `data-shortcodes`: text such as
[affilinode_product id="…"]in the content becomes a box – for editors without an HTML block, such as Ghost. - `data-analytics`: clicks on shop links go to GA4, Google Tag Manager, Umami or Matomo;
data-analytics-eventnames the event (defaultaffiliate_click). - `data-context-after`: context box “Matching the content” after the nth paragraph (with the Contextual Ads plan feature).
- JavaScript API
affilinode.scan()andaffilinode.context()for pages that load content afterwards (single-page apps, forums); eventaffilinode:erroron errors. - Comparison tables (
data-table) embedded; responses from the embed now also carry the necessary notes for the browser on errors (e.g. invalid key). - Demo keys with fictitious sample data for previews and website demos, without quota or counting.
- Reporting by box type: embedded boxes pass the box type and position on to the partner networks.
- `data-links`: supported product links in the content (Amazon, eBay, Awin deep links, retailer links that affilinode knows) become product boxes or compact rows;
5 October 2026
- The “Device + plans” box (smartphone with matching mobile contracts) is also available in the embed.
- The generator in the dashboard shows a live preview with the real embed.
4 October 2026
- Product boxes can be embedded in static HTML pages (
<div data-affilinode="product" data-id="…">); all box types are available for this. - Detailed title is now the default in product boxes.
- The deal box (“Deals of the day”) can be embedded.
- Clicks in embedded boxes are counted and analysed in the dashboard.
- Fixed: the widget was blocked by some browsers on foreign domains.
- Product boxes can be embedded in static HTML pages (