SDKs
Integrations overview
Pick how actions reach Streakfox and how members see their progress.
Every integration does two jobs:
- Count the action. Your platform, server or an automation tells Streakfox a member did the thing. Actions are never counted from the browser.
- Show progress. The widget displays the member's streak on your site. It doesn't count anything.
Your project key identifies your project and is safe in a web page. Your action is the thing you count, such as lesson_complete.
Count the action
| Path | Best for | Guide |
|---|---|---|
| WordPress plugin | LearnDash lessons, approved member comments or your own server hook | WordPress |
| Incoming URL | Kajabi, Teachable, Thinkific, Circle and other platforms, through Zapier or Make | Course platforms |
| Webhook | Your own backend, n8n, Pipedream or anything that can send an HTTP POST | Events API |
| Shopify | Orders, sent from Shopify Flow, a webhook app or Zapier | Shopify |
Show progress
Add the widget script to pages where members are signed in. Pass the same member you count:
<script
src="https://cdn.streakfox.com/widget.js"
data-project="YOUR_PROJECT_KEY"
data-event="YOUR_ACTION"
data-user-hash="MEMBER_ID"
defer
></script>- Webhook.
data-user-hashis the member ID you send asuserHash. - Incoming URL. Use
data-memberwith your platform's member email instead. The course platform guide lists the variable for each platform. - WordPress. The plugin adds the widget for you.
JavaScript and React packages
@streakdev/web and @streakdev/react are in preview and not yet on npm, so you can't install them today. Their pages describe what they'll do so you can plan ahead. Use the widget script above in the meantime. See Web SDK, React SDK and Next.js.