Google Analytics has been deemed illegal by the EU DPA. Undicat is a British company, operated fully on European infrastructure.

Inertial analytics

Undicat Analtics works great with Intertia.js, with only minimal setup:

1. Modify the app.js file

Open the resources/js/app.js file and add this to the top of it:

import { Inertia } from '@inertiajs/inertia'

2. Add page tracking

Then go to the bottom of the file and paste:

Inertia.on('navigate', (event) => {
  window.undicat.pageview();
})

And voilà, you are all set.

Further customization

To learn about all the options we offer, read our advanced documentation here.