Affillo Tracking for WooCommerce

By affillo

0+ active installationsVersion 1.0.1

Official Affillo affiliate tracking for WordPress / WooCommerce stores.

Description

Tracking is OFF by default. This plugin loads nothing on your site and
sends no data anywhere until you enter your Affillo credentials AND switch
tracking on in Settings > Affillo Tracking. It is a connector for the
Affillo affiliate network service (affillo.com): it only functions for
store owners with an Affillo merchant account, and enabling it is the
explicit opt-in to the tracking described below.

Installs the Affillo tracking in two layers:

  • Base page tracking (clicks, sessions, coupon and multi-touch attribution) on
    every page.
  • Order conversion recording, twice for reliability:
    • a browser event on the order thank-you page, and
    • a signed server-to-server (S2S) postback when the order is marked
      Completed – HMAC-SHA256 signed with your API secret so conversions cannot
      be forged, and unaffected by ad-blockers or cookie banners.

Privacy: no customer name, email, or phone is transmitted. The billing email
is sent only as a SHA-256 hash for cross-device attribution. Order number,
totals, currency, coupon codes, and line items (SKU, name, price, quantity)
are the only order data sent.

External Services

This plugin connects to the Affillo affiliate network (affillo.com), the
service it exists to integrate with. Two connections are made:

  1. The tracking script is loaded in the browser from
    https://affillo.com/track/assets/js/atm-v6.js on every page, and sends
    page/click/conversion events to affillo.com. This is required to
    attribute sales to the correct affiliate.
  2. When an order is marked Completed, your server sends a signed
    server-to-server postback to https://affillo.com/track/conversion-s2s.php
    containing the order number, totals, currency, coupon codes, line items
    (SKU, name, price, quantity), and a SHA-256 hash of the billing email.
    No plain-text personal data is sent.

Both connections require an active Affillo merchant account and only occur
after you enter your Affillo credentials in the plugin settings AND enable
the master tracking toggle, which is off by default. While the toggle is
off, no script is loaded and no request of any kind is made.

Affillo’s privacy policy is published at https://affillo.com/#privacy and
the merchant terms are provided in your Affillo merchant agreement.

Installation

  1. Upload and activate the plugin.
  2. Go to Settings > Affillo Tracking.
  3. Enter your Program ID, Merchant ID, API Public Key, and API Secret Key
    from the Affillo merchant portal (Tracking page).
  4. Tick “Enable Affillo tracking” and save. Tracking stays off until you do.
  5. If you are completing the Affillo onboarding tracking test, paste the test
    token as well, then clear it once the test passes.
  6. Place a test order and check the order notes for
    “Affillo: conversion sent via signed S2S postback.”

FAQ

When does the S2S conversion fire?

When the order status changes to Completed. Failed sends are retried up to 3
times; permanent rejections are recorded as an order note.

Does it work with checkout blocks?

Yes – attribution cookies are captured on both classic checkout and the
block-based (Store API) checkout.

Does it support HPOS?

Yes, High-Performance Order Storage compatibility is declared.

Changelog

1.0.1

  • Tracking is now off by default behind an explicit master opt-in toggle.
  • Scripts are registered through wp_enqueue_script / wp_add_inline_script.
  • Declared the WooCommerce dependency via the Requires Plugins header.
  • Thank-you page conversion now verifies the order key before reading order data.

1.0.0

  • Initial release: base tracking script, thank-you page conversion event,
    signed S2S postback with retries, attribution cookie capture, HPOS support.