Skip to content

Affiliate program

Tracking for partners

Link parameters, deep links and server-to-server postbacks, for partners who run their own tracking.

Updated October 28, 2026

Links

Your partner link is https://aigrammatic.com/?aff=YOUR_TAG. The tag works on any page of the site, so you can link straight to the page that fits your content:

  • https://aigrammatic.com/pricing?aff=YOUR_TAG
  • https://aigrammatic.com/grammarly-alternative-for-mac?aff=YOUR_TAG
  • https://aigrammatic.com/de/?aff=YOUR_TAG (any language version)

Optional parameters:

  • s1 (also sub or sub1): a sub ID of up to 80 characters, such as the article or the placement. Your dashboard splits clicks, trials and earnings by it.
  • clickid (also click_id, cid, transaction_id or subid): your tracker’s click ID, returned in postbacks as {clickid}.

The site removes these parameters from the address bar after reading them, so a visitor who shares the page doesn’t pass your tag on. The first partner link a visitor opens is kept for 60 days in their browser. Clicks are counted once per visitor per day.

Your code

Your discount code works without a link: a buyer who types it at checkout gets 20% off their first 12 months, and the purchase is credited to you even if they came through someone else’s link. Visitors from your link get the code applied for them.

Postbacks

Add a postback URL in your dashboard (Postback) to have us call your tracker from our server. We send a GET request to the URL with these macros filled in, URL-encoded:

  • {event}: trial (a free trial started), sale (the first payment), rebill (a renewal), refund (a refund or dispute; payout and amount are negative)
  • {clickid}: the click ID from your link, empty if there was none or the sale came from your code
  • {sub}: the sub ID from your link
  • {payout}: your commission for this event, in US dollars
  • {amount}: what the customer paid, in US dollars
  • {currency}: always USD
  • {txid}: a unique ID for the event; each event is sent once
  • {cycle}: month or year

For example:

https://tracker.example.com/postback?cid={clickid}&event={event}&payout={payout}&txid={txid}

The URL must use http or https and point to a public server. We wait up to 8 seconds and don’t follow redirects; any 2xx or 3xx answer counts as delivered. The dashboard shows the latest calls and their status, and has a button to send a test call.

Program terms as data

GET https://aigrammatic.com/api/aff/program returns the program’s terms as JSON, for your tools or your AI agent. The partner terms are the binding version.

Questions

Write to hi@aigrammatic.com.