JavaScript Frameworks
Learn how to integrate your Accylin tracking code with various JavaScript frameworks.
Prerequisites
- Your Accylin tracking code for your website, see Getting Started.
React
Using Script Tag
Add your website tracking code to your main HTML file public/index.html
:
Learn more about adding scripts to React applications.
Using Next.js
For Next.js applications, add your tracking code in pages/_document.jsx
:
Angular
Add your tracking code to src/index.html
:
SvelteKit
Add to src/app.html
:
If you didn't find instructions for your specific JavaScript framework, don't worry!
You can easily search for how to add a custom script to your framework in its documentation
or community resources. Most modern frameworks provide simple ways to inject third-party
scripts like Accylin's into the HTML <head>
section or dynamically through JavaScript.
Verification
After adding the tracking code:
- Visit your application
- Open browser developer tools (F12)
- Check the Network tab for requests to Accylin servers
- Verify data appears in your Accylin dashboard
Custom Events
For implementing custom event tracking in your application, please refer to our detailed guide on Custom Events.
Support
Need help? Contact us at support@accylin.com or visit our help center.