v0.21.0
New features
Custom events
You can now send custom events to umami using the global umami
variable. Example:
const button = document.getElementById('signup-button');
button.onclick = () => umami('Sign up button click');
You could already do this using umami CSS classes, umami--onclick--signup-button-click
, but now you have more control via custom Javascript.
Responsive chart labels
Chart labels should now display correctly at mobile screen sizes
Query string URLs now supported
Some applications use URLs like /blog/index.php?/article/100
for navigation. This is now correctly counted as a unique URL.