Google Analytics

google

These snippets use analytics.js (the ga() API) from Universal Analytics, which stopped processing data on July 1, 2023. Kept for the record; Google Analytics 4 uses gtag() calls instead.

ga('send', 'pageview', 'name of your virtual page');
ga('send', 'event', 'event category', 'event action', 'event label', event value);
ga('send', 'event', 'event category', 'event action', 'event label', event value, {'nonInteraction': 1});

Related

Keyboard shortcuts

/Open search
CtrlKOpen search (Cmd+K on macOS)
?Show this cheat sheet
Ctrl/Show this cheat sheet (Cmd+/ on macOS)
EscClose search or this cheat sheet

Turns off the single-key shortcuts (/, ?). Ctrl/Cmd+K and Ctrl/Cmd+/ stay.