Article

Top selling products: sending the products of each order

The Top selling products block of your dashboard ranks your products by your affiliates’ sales. For that, Affilae needs to know which products each order contained. Your conversion tag sends them, and your product feed lets Affilae recognise them. This page explains how to match the two, integration by integration.

Requirements: a product feed created with the Top Sold Products use, active and error-free, and a conversion tag installed on your shop.

How a sale is linked to a product

  1. With each order, your conversion tag sends the reference or references of the products bought, separated by the Product separator in the conversion tag chosen in the feed (semicolon by default).
  2. Affilae looks for each reference in the column chosen as Conversion tag, among the products imported from your Top Sold Products feeds.
  3. If the value is identical, the sale is linked to the product. Otherwise the reference is ignored: the sale is still recorded, but it does not show in the ranking.
Good to know: the comparison is exact. Upper case, spaces and leading zeros count: TRW-28 and trw-28 are two different references.

What each integration sends

The rule is always the same: the column chosen as Conversion tag must hold the reference your integration sends.

Integration Reference sent Separator Column to choose as Conversion tag
Shopify (Affilae pixel) The Shopify product ID, for example 8585417392452. It is the same for every size and colour of an item. Semicolon The column holding the Shopify product ID. In a Google Shopping export from Shopify, g:id often combines product and variant: then map g:item_group_id to Product group identifier and choose it as Conversion tag.
WooCommerce (Affilae module) The WooCommerce product ID. For a product with variations, it is the ID of the parent product. Semicolon The column holding the WooCommerce product ID. Check what your feed extension puts in g:id: ID, SKU or variation ID.
PrestaShop (Affilae module) The PrestaShop product ID, without the combination. Semicolon The column holding that ID alone. Watch out for feeds combining product and combination, for example 123-45.
Google Tag Manager (Affilae template) What you put in the Product ID(s) field, often the item_id of your dataLayer. The one you use in the value The column holding the same reference as your item_id.
Manual conversion tag What you put in Conversion.product. The one you use in the value The column holding the same reference.
Server-to-Server What you put in the product parameter of the conversion URL. The one you use in the value The column holding the same reference.
Tip: if your feed has one row per size or colour while your tag sends the product ID, map the shared ID column to Product group identifier and choose it as Conversion tag. All variants are then counted on a single card.

Checking that your sales are linked

  1. Pick a product that has been in your feed for at least a day, the time it takes to be imported.
  2. Place a test order that generates a sale on your program.
  3. Open your Dashboard on the period of the order and check the Top selling products block, or its CSV export.

If the product does not show, compare the reference sent by your integration with the value of the column chosen as Conversion tag, character by character.

Most common mistakes

  • Variant on one side, product on the other. The tag sends the product ID, the feed holds the ID of each size or colour, or the reverse.
  • Different prefix or format. For example shopify_FR_8585417392452_4512 in the feed and 8585417392452 in the tag.
  • SKU on one side, ID on the other. Most shops have both, and they do not look alike.
  • Different separator. The Affilae modules separate products with a semicolon: keep that separator in the feed.
  • Wrong feed use. Only a feed created with the Top Sold Products use, active and error-free, feeds the ranking.
  • Product just added. Products are imported once a day: a sale made before the import is not linked.

Related articles

Frequently asked
questions

A sale is recorded even when no product is recognised. The ranking only shows the sales for which at least one reference was found in your feed. Compare the reference sent by your tag with the column chosen as Conversion tag.

Your tag sends the ID of each variant. Send the product ID instead, or choose as Conversion tag a column specific to each variant if that is what your tag sends. Both sides must speak about the same level.

Yes, if your conversion tag sends the EANs of the products ordered. The Affilae modules send the shop’s product ID, not the EAN.

Until the next day: the products of your Top Sold Products feeds are imported once a day. Sales made before the import are not linked afterwards.

Yes, the use is chosen when the feed is created. The same file can serve both: create one feed with each use, from the same URL.

Need help?

Stay up to date with the latest trends in affiliate marketing and never miss any of our articles.

Contact Us