Unfortunately in order to help you further, it’s essential to see the actual Laravel code that’s causing difficulty. However, keep in mind that Google has shifted from Universal Analytics (UA) to Google Analytics 4 (GA4) which has different mechanisms for tracking events. UA used to handle this with trackable ‘events’, whereas GA4 tracks ‘events’ as any user interaction and it works a bit differently. While server side tracking is also possible, most likely you need to send your events to GA4 using Data Layer and gtag.js. You can also consider utilizing community packages such as spatie/laravel-analytics for help. Also, it might help to have a look at the Google Tag Manager to set up your GA4 tracking. This way, you only need to integrate the GTM code into your Laravel application and handle all GA event tracking directly within the GTM interface. If issues persist, consult an expert.