Configuration
Configure the SDK via data attributes on the script tag or programmatically.
Data Attributes
All configuration is done through data-* attributes on the script tag. The following options are available:
data-keyYour public API key (pk_live_xxx). Required.data-track-pageviewAuto-track page views on load. Default: true. Set to "false" to disable.data-cookie-domainOverride the cookie domain. Default: current domain. Useful for cross-subdomain tracking.data-paramURL parameter name for referral codes. Default: "ref". Change to match your URL structure.Options
Here is a full example showing all available configuration options:
<script src="https://icodrip.com/v1/ak.js" data-org="your-org-slug" data-track-pageview="true" data-cookie-domain=".example.com" data-param="ref" async ></script>