+ Cookieless analytics with server-side visitor identity. Bundled, never proxied. +
+
+ The button calls proxy.t() without checking status. A call made before
+ the tracker has loaded is queued and replayed once it has.
+
const { proxy, status } = useScriptStatableAnalytics({
+ siteId: 'YOUR_SITE_ID',
+ scriptOptions: {
+ trigger: 'onNuxtReady',
+ },
+})
+ // One function: a name and optional properties
+proxy.t('Sign Up', { plan: 'pro' })
+
+// Strings, numbers and booleans all work as property values
+proxy.t('Purchase', { plan: 'annual', amount: 99 })
+ + {{ result }} +
+