Skip to main content

Advanced Usage

Dynamic event schema

You can generate event schema dynamically:

const eventSchema = defineEventSchema({
...myDynamicEvents,
});

Advanced page view

You can pass both custom title and custom URL:

trackPageView("My Page Title", "/custom-url");

Manual queue flush

// not exposed yet — roadmap!

SSR?

No — client only.

For SSR, you must call Matomo server-side API.