Skip to main content

Tracking and Attribution Reference

Canonical parameters, cookie behavior, and cross-domain attribution options

Table of Contents

Tracking and Attribution Reference

For full script options and runtime method details, see Tracking Script Reference.

Canonical URL Parameter

Use ?via=TOKEN for affiliate token attribution.

Optional Custom Parameter Names

You can define additional token parameter names with script attribute:

<script
  async
  src="https://app.affiliatebase.io/track.js"
  data-account-id="YOUR_ACCOUNT_ID"
  data-affiliatebase-params="partner,invite">
</script>

Referral Preload

?referral=<referral_id> preloads an existing referral.

Cross-Domain Tagging

Use data-domains in script config to append referral IDs to configured external hosts.

Conversion Call

affiliatebase('convert', { email: '[email protected]' });

Notes

  • Use via as the default token parameter
  • Keep referral and checkout flows on HTTPS in production
  • For API endpoints and auth, see REST API Overview