Skip to the content
EqualRefStart tracking

Docs

Install the snippet

One line of HTML on your site remembers which partner sent each visitor.

The snippet is one script tag. Paste it into the HTML of your marketing site, on every page where a visitor can arrive from a partner's link. Setup step 2 and Settings, Tracking show it with your program's own name filled in.

Example
<script async src="https://www.equalref.com/t.js"
        data-program="your-program"></script>

What it does

  • A partner's link looks like https://your-site.com/?via=their-code. When a visitor arrives with ?via= and a valid code, the snippet remembers the code in a first-party cookie named aft_ref and tells the product about the click.
  • The cookie lasts for the click window you set in Settings, Program. After that the visitor is no longer tied to the partner.
  • A second first-party cookie, aft_vid, holds a random visitor id. It is not tied to a person.
  • Links to buy.stripe.com, and the stripe-pricing-table and stripe-buy-button elements, get the code added as their client reference id, including ones added to the page later.
  • Once per browser session it sends a ping, so the product knows the snippet is installed.

Check that it works

Publish the page, open your site in a browser, then choose Check installation. It says Found when the product saw a ping from your site in the last 10 minutes. If it says Not found, open the site in a browser again and check again.

If you build your own checkout

The snippet cannot edit a checkout that your own code creates. Pass the referral yourself: see Pass the referral from your own checkout.