panphp / pan

A simple, lightweight, and privacy-focused product analytics php package
MIT License
1.08k stars 48 forks source link

no data collected #5

Closed atmonshi closed 1 month ago

atmonshi commented 1 month ago

first thank you so much for this package, really helpfull.

I can't get any data to be sent to the database! I even dd on the EventController@store and nothing happend

my simple test code:

<a href="{{ url('/') }}" data-pan="Free">
        track Free
    </a>
    <a href="{{ url('/') }}" data-pan="Paid">
        track Paid
    </a>

I did console log on pan.iife.js and I am getting the data on page unload:

Screenshot 2024-10-14 at 4 21 20 PM

but navigator.sendBeacon not sending the data! also checked route:list and the route is registered.

I feel I am missing something! if more details needed happy to provide them :)

atmonshi commented 1 month ago

sorry, switched the branch and when got back, all working now :) I guess some caching issues.