Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
visitor.pageview('/').send();
visitor.pageview('/').pageview('/contact').send();
visitor.pageview('/landing-page-1').event('Testing', 'Button color', 'Blue').send();
visitor.pageview('/landing-page-1').send();
visitor.event('Testing', 'Button color', 'Blue', 42, { p: '/landing-page-1' }).send();
visitor
.event({ ec: 'Mail Server', ea: 'New Team Member Notification sent' })
.event({ ea: 'Invitation sent' })
.send();
visitor.set('uid', '123456789');
app.use(ua.middleware('UA-XXXX-Y', { cookieName: '_ga' }));
ua.createFromSession({ cid: 'some-string' });
ua('UA-XXXX-XX').debug();
ua('UA-XXXX-XX', {
requestOptions: {
proxy: '…',
},
});