Generic Integration Guide
Integrate Fusionaly with any website or web application
Add the tracking script to your <head>:
<script defer src="https://your-domain.com/y/api/v1/sdk.js"></script>Replace your-domain.com with your Fusionaly instance domain.
What’s Tracked Automatically
Section titled “What’s Tracked Automatically”- Page views - Every page load and SPA navigation
- Button clicks - All button interactions (when enabled)
- Sessions - Visitor sessions and return visits
See Automated Tracking for details.
Configuration
Section titled “Configuration”Customize tracking before the SDK loads:
<script>window.Fusionaly = window.Fusionaly || {};window.Fusionaly.config = { respectDoNotTrack: true, // Honor DNT (default: true) autoInstrumentButtons: true, // Track clicks (default: true) debug: false // Console logging (default: false)};</script><script defer src="https://your-domain.com/y/api/v1/sdk.js"></script>See SDK Configuration for all options.
Custom Events
Section titled “Custom Events”Fusionaly.sendCustomEvent('newsletter_signup', { source: 'footer'});See Custom Events for more examples.
Revenue Tracking
Section titled “Revenue Tracking”Fusionaly.registerPurchase(1999, 'USD', { product_id: 'prod_123'});See Revenue Tracking for details.
Testing
Section titled “Testing”- Set
debug: truein config - Check browser console for tracking events
- Verify events appear in your dashboard
Fusionaly auto-detects navigation in React, Vue, and Angular. For custom routing:
window.Fusionaly.sendPageView();