How Pan works
mainPan operates using a two-part system:
- Client-side: A lightweight JavaScript library is injected into your HTML via middleware. It listens for
viewed,clicked, orhoveredevents on elements withdata-panattributes. Events are batched to minimize server requests and do not collect personal information (no IP addresses or user agents). - Server-side: The library sends data to your Laravel application. Pan only stores the analytic name and a counter for each event type. It does not track user identity.