symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony
https://ux.symfony.com/
MIT License
833 stars 306 forks source link

Swup UX - Detect change page #1838

Open creative-eye-studio opened 5 months ago

creative-eye-studio commented 5 months ago

Hello !

Is there anyone who know how to detect change pages to Matomo with Symfony UX Swup please ?

Thanks in advance for help ! :)

smnandre commented 5 months ago

There is an official Swup Matomo plugin : https://swup.js.org/plugins/matomo-plugin/

You can use the different events available to register the plugin (see https://symfony.com/bundles/ux-swup/current/index.html#extend-the-default-behavior )