Installation Guide · Vue.js
How to Add Agent Analytics to Your Website
One script captures what visitors browse. That becomes memory your analytics can understand. And agents like Jack turn it into actions — recovery emails, demand segments, conversion insights.
Install on Vue.js
Vue.js
For Vue.js projects, add the script to your public/index.html or use the head option.
public/index.html
Add the script to your HTML template. This is the simplest and most reliable method.
public/index.htmlThis is the main HTML file that Vue renders inside. It's in the public folder.
<head> sectionThe <head> section contains meta tags and the page title.
Add it near other script tags or at the top of <head>.
<script async src="https://analytics.tradly.dev/tracker.js" data-server="https://analytics.tradly.dev" data-project="marketplace"></script>Run npm run dev to see changes.
Troubleshooting (3 common issues)
- →For Vue 3 with Vite, the file is index.html at project root, not in public/
- →For Vue 2 with Vue CLI, the file is public/index.html
- →If using Nuxt.js, use the head option in nuxt.config.js instead
Need help? Contact support@tradly.dev or check our FAQ.
Last updated: January 2025