Pan Analytics Viewer – Laravel News

The Laravel community has been buzzing with excitement since the release of the Pan analytics package. Developer Lukas Mateffy has quickly capitalized on this momentum by creating a small and helpful Laravel package called Pan Analytics Viewer. This package enables you to view your panphp/pan analytics directly in the UI where they are triggered without needing to run the cli command.
To install this package, run:
composer require mateffy/pan-analytics-viewer
Then, to add the popups to your app, all you have to do is include the pan-analytics::viewer component to your blade template.
@if (auth()->user()?->can('view-analytics'))
<x-pan-analytics::viewer />
@endif
Once that is added, you should have access to view the analytics of any element that has a [data-pan] attribute when you hover over the element.
Note: You will want to ensure you only render this component for users with the necessary permissions as this component will expose the analytics data collected by pan.
Learn more about this package and view the source code on GitHub at Capevace/pan-analytics-viewer.
Pan Analytics Viewer
The points below explain how Pan Analytics Viewer works in everyday situations and where most people get stuck.
What should beginners know about Pan Analytics Viewer?
Start with the basics covered above, apply one change at a time, and note what happens. That way you can tell which step actually made the difference instead of guessing.
How long does Pan Analytics Viewer take to show results?
It depends on your starting point. Most readers see a clear difference after four to six weeks of consistent work, and sooner when they track results weekly.





Related reading
What to check before you start
Before committing time or money to Pan Analytics Viewer, it helps to know what a good outcome looks like. Write down the result you actually need, the budget you can live with, and the deadline you are working against. Those three answers rule out most of the options that look attractive but do not fit your situation.
Next, look at the details that are easy to miss: what is included, what costs extra, and what happens when something goes wrong. Ask directly about timelines and follow-up. A clear answer is usually a better sign than a low price, because Pan Analytics Viewer is rarely a one-off purchase of attention.
A simple step-by-step approach
Start with the basics of Pan Analytics Viewer and keep the first step small enough to finish in one sitting. Gather the information you need, compare two or three realistic options, and note the trade-offs in plain language rather than marketing terms.
Then test the decision on a small scale before you scale it up. This is the part most people skip, and it is the reason Pan Analytics Viewer sometimes feels harder than it should. A short trial tells you more than another hour of reading, and it usually surfaces the one constraint that matters in your case.
Mistakes that cost time and money
The most common mistake with Pan Analytics Viewer is treating the first option you find as the only option. Comparison is not busywork: differences in scope, support, and timing often matter more than the headline number.
The second mistake is ignoring the follow-up. Whatever you choose, plan how you will check that it worked. A quick review after two weeks catches problems while they are still cheap to fix, and it turns Pan Analytics Viewer from a one-time decision into something you can improve.






