Button Links Integration
Optimize your publisher program using Button Links.
Button Links allow you to create a link that utilizes Button's routing and attribution systems to help a user shop in-app or on the web.
Here's an example:
https://r.bttn.io? \
btn_url={https%3A%2F%2Fwww.retailer.com} \
&btn_pub_user={user_id_here} \
&btn_ref={org-0000000000000000}https://r.bttn.io?btn_url=https%3A%2F%2Fwww.retailer.com&btn_pub_user=user-123&btn_ref=org-0000000000000000Button Links accept the following query string parameters. All links must only contain ASCII characters and have properly encoded query strings.
Field | Required? | Definition |
|---|---|---|
| Yes | The target destination URL (url-encoded, including https). This can be a retailer landing page or an affiliate tracking link, depending on whether Button manages your affiliate network accounts. e.g., |
| Yes | Your Button Organization ID (always starts with the prefix e.g., This can be found in your Button Dashboard. |
| Required for user rewards | Your user’s unique identifier. This value will be passed back to you on any transaction webhook events associated with downstream conversions. Must be under 256 characters. e.g., Note: If you reward users for shopping activity, you should include this value in order to know which user to reward. |
| No | A unique publisher reference value (e.g. click ID, campaign ID). This value will be passed back to you in webhook events associated with any downstream conversions activity. Must be under 512 characters (decoded). e.g., |
Passthrough Values
Similar to how publishers can leverage Button's Publisher SDK to persist values across taps and conversion events, publishers can pass a user ID or unique publisher reference value directly on Button Links.
Simply add thebtn_pub_userparameter to pass through your user's unique identifier, or add the btn_pub_refparameter to pass through your unique publisher reference (e.g., click ID, campaign ID).
Here's an example Button Link:
https://r.bttn.io? \
btn_ref={org-0000000000000000}
&btn_url={https%3A%2F%2Fwww.retailer.com} \
&btn_pub_user={user_id_here} \
&btn_pub_ref={your_passthrough_value}https://r.bttn.io?btn_ref=org-0000000000000000&btn_url=https%3A%2F%2Fwww.retailer.com&btn_pub_user=user-123&btn_pub_ref=your-refLeveraging Button Links via API
- Links API Introduction — the Button Links API can be used to generate Button Links via an API call.
Updated 29 days ago