💡 Tip: To access your developer dashboard, log into your account and go to:Settings → Developer Tools → API Keys & Webhooks
npm install @bunnoiq/sdk
import BunnoIQ from '@bunnoiq/sdk'
const bunno = new BunnoIQ({
apiKey: 'YOUR_API_KEY',
userId: 'current-user-id',
environment: 'production'
})
// Track page views
bunno.trackPageView()
// Launch a survey
bunno.launchSurvey('survey-id', {
userEmail: 'john@example.com',
metadata: {
plan: 'premium',
region: 'EMEA',
source: 'web-app'
}
})
<iframe
src="https://survey.bunnoiq.com/embed/{survey_id}"
width="100%"
height="600px"
frameborder="0"
allowfullscreen>
</iframe>
import { BunnoSurvey } from '@bunnoiq/sdk'
<BunnoSurvey
surveyId="your-survey-id"
user={{
id: "user_123",
email: "user@example.com"
}}
onComplete={(responses) => {
console.log('Survey completed:', responses)
}}
/>
💡 Tip: Use conditional rendering to trigger post-transaction or exit-intent surveys for better response rates.
<html>
<body>
<h1>We value your feedback!</h1>
<p>Hi {user.first_name},</p>
<p>We'd love to hear your thoughts on your recent experience with us.</p>
<a href="{survey_link}" style="background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px;">Take the survey</a>
<p>Thank you!</p>
<p>The BunnōIQ Team</p>
</body>
</html>
import { BunnoIQ } from '@bunnoiq/sdk'
const bunno = new BunnoIQ({ apiKey: 'YOUR_API_KEY' });
// Send a survey email
bunno.sendSurveyEmail({
surveyId: 'customer-satisfaction',
recipient: 'customer@example.com',
variables: {
firstName: 'John',
lastName: 'Doe'
}
})
POST https://yourdomain.com/webhooks/bunnoiq
Content-Type: application/json
{
"event": "survey.completed",
"data": {
"survey_id": "customer-satisfaction",
"user_id": "user_123",
"responses": [...]
}
}
Note: Secure your webhook endpoint and verify payload signatures.
Go to your dashboard, navigate to Developer Tools, and click "Reset API Key".
Yes, survey results can be exported as CSV or JSON from the analytics dashboard.