© 2026 Hedgehog Software, LLC
app: { head: { script: [ { hid: 'Rudder-JS', src: 'https://myurl/dataPlane', defer: true }, { hid: 'rudder-js', innerHTML: ` rudderanalytics = window.rudderanalytics = []; var methods = [ 'load', 'page', 'track', 'identify', 'alias', 'group', 'ready', 'reset', 'getAnonymousId', 'setAnonymousId' ]; for (var i = 0; i < methods.length; i++) { var method = methods[i]; rudderanalytics[method] = function (methodName) { return function () { rudderanalytics.push([methodName].concat(Array.prototype.slice.call(arguments))); }; }(method); } const config = useRuntimeConfig() console.log(config.rudderstack) rudderanalytics.load(config.rudderstack, 'https://myurl', { configUrl: 'https://myurl' }); //rudderanalytics.page(); `, type: 'text/javascript', } ], }, },
Join the Discord to ask follow-up questions and connect with the community
Nuxt Community Chat Server
31,632 Members