NuxtN
Nuxt8mo ago
7 replies
WiFi Plug

nuxt scripts rybbit.io analytics custom events hit or miss.

anyone using the nuxt scripts module with rybbit? I'm self hosting rybbit and the standard page events etc work perfectly but custom events i have setup are hit or miss. on a hard refresh they won't work until i navigate to another page and back, and some still don't work.
nuxt config
// Nuxt scripts module
scripts: {
registry: {
// Website analytics Rybbit.io
rybbitAnalytics: {
scriptInput: {
src: 'https://tracking.mywebsite.com/api/script.js',
},
siteId: '1',
},
},
},
and then on different pages where i want custom events i do
const { proxy } = useScriptRybbitAnalytics()

// Track event in analytics
proxy.rybbit.event('profile_initial_setup_complete')
This website is for sale! mywebsite.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, mywebsite.com has it all. We hope you find what you are searching for!
Was this page helpful?