Compatibility mode for Amazon SiteStripe

Take over the Amazon SiteStripe links, images and boxes in your posts with affiliate-toolkit – without editing a single post.

Many sites contain Amazon links, images and iframe boxes created with Amazon's SiteStripe toolbar. They show no current prices and cannot be updated centrally. The SiteStripe compatibility mode finds these codes in your posts, creates an affiliate-toolkit product for each ASIN and then renders affiliate-toolkit links and product boxes in their place – so you do not have to edit your posts.

The compatibility mode does not change your posts. The original code stays in the content and is only replaced when the page is rendered. If you deactivate the mode, everything looks as before.

Prerequisites: affiliate-toolkit with the Amazon module and an Amazon shop that is set up and connected (see Set up the Amazon interface), plus the Amazon SiteStripe compatibility module.

Amazon SiteStripe links in the post content are taken over by affiliate-toolkit: the text link and the image link now point to the product managed in affiliate-toolkit (with affiliate mark).
SiteStripe text and image links now point to the product managed in affiliate-toolkit.

What is recognised

When it scans your content, affiliate-toolkit looks for three kinds of SiteStripe code:

  • Text links – <a> tags pointing to an Amazon product page (www.amazon…).
  • Images – <img> tags loaded from Amazon's ad servers (amazon-adsystem.com).
  • Boxes – SiteStripe iframes from amazon-adsystem.com.

The ASIN, the tracking ID and the Amazon country are read from each URL. Shortened links such as amzn.to are not recognised because they contain no ASIN.

Set it up step by step

  1. Install the module and activate its license under affiliate-toolkit → Settings → Licenses.
  2. Open affiliate-toolkit → Compatibility and switch to the tab Amazon SiteStripe.
  3. Shop (default): select the Amazon shop the products should be created in. It must match the country of your links.
  4. If your site contains tracking codes from several Amazon countries, tick I have tracking codes from multiple Amazon countries on my site and choose a shop for each region (or "use default shop").
  5. Product status (default): the status of the new products. If you do not use product pages, "Draft" is fine.
  6. Sitestripe Template mapping and Sitestripe Image mapping: choose the affiliate-toolkit templates used for SiteStripe boxes and images. The base plugin ships a template called "sitestripe" for this purpose.
  7. Include CPTs: posts and pages are always scanned; add further post types here if needed.
  8. Tick Activate the Amazon Site Stripe Code Search and click Save Changes.
Compatibility → Amazon SiteStripe: activation, shop per region, templates for text and image links and the post types to scan.
Compatibility → Amazon SiteStripe: shop, product status, template mapping and post types.

Run the scan and activate the mode

On saving, affiliate-toolkit runs through all published and draft posts and pages, collects the SiteStripe codes (also from custom fields) and creates the products. The import result table lists every code found with post, ASIN, product, type and status ("Found" or "Imported") and the total searching time.

As soon as the message says that everything is imported, tick Activate Compatibility mode and save again. From now on affiliate-toolkit replaces the SiteStripe codes on your pages. You can then deactivate other SiteStripe-related plugins.

On large sites the scan can run into a timeout. Simply click "Save Changes" again – products that already exist are reused, so each run gets further. Alternatively tick Do not import products directly. Only create the products.: the products are then only created and filled with data by the cronjob in the background.

Frequently asked questions

Are my posts changed?

No. The SiteStripe code stays in the post content. affiliate-toolkit only replaces it when the page is output.

What happens with new SiteStripe links I add later?

Run the code search again (tick the option and save). New codes are added and the products created.

Why are my amzn.to links not replaced?

Short links do not contain an ASIN, so they cannot be matched to a product. Replace them with full Amazon links or with an affiliate-toolkit shortcode.