Kirby Analytics Dashboard is a Kirby plugin which extends your dashboard with some Google Analytics statistics and reports. It does not emulate Google Analytics itself but provides a nice and simple overview about how your site is doing.
Please Note: It does not add or handle your Google Analytics Tracking code.
Screenshot
Widgets
Currently there is only one widget available, so please be patient. I’ll add some more within the next weeks.
Installation
Please read the Readme carefully. Sadly it’s not as obvious as it should be to setup the plugin correctly. Feel free to open a new Github Issue if you have any trouble. I’ll help as much as I can!
Limitations
This plugin depends mostly on modern Javascript, it’s testet in most modern browsers and does not use any kind of Polyfills. I’ll try improve the browser compatibility in the next releases.
Feedback
Any kind of feedback is very much appreciated. Please create a new Github Issue for feature requests or bug reports.
I’m trying to install the plugin but I’m stuck at the “Getting a Google View ID” part. On the google page, “account explorer” is still loading and I can not see the rest. As on this thread, I tried to remove my caches, on safari / firefox / chrome, the page is still loading …and I can’t find my ID
as this is a Google Page, there is nothing I can do right now. But you could try an alternative approach to retrieve the View ID: Login to Google Analytics and follow these instructions: https://www.youtube.com/watch?v=x1MljgyLeRM
Thanks for the trick, I could found my View ID, but the installation doesn’t work…But it’s a real mess between all these google pages/interfaces/dash board/…I have to relax and begin to the start
Maybe it doesnt work because google does’t want “/” into the Authorized JavaScript origins URL to provide. Although it does not work on my local server either
There is currently an issue (depending on how do you got the code). It’s currently not possible to make use of a submodule even if you download the source code from the repository directly. Could you please try the pre-build release before you start over?
I tried and it doesn’t change anything. Maybe I’m wrong somewhere, I can’t say. Locally, and on server, I just see the header of the widget ‘Besucher’, and nothing below. I thought it could be some plugins interferences, but removing my other plugins is not resolving the problem…
Just in case : I have call my folder kirby-analytics-dashboard in site/plugins/. Do I have to rename it ?
You’re allowed to add a port in authorized JavaScript origins.
The JS error seems that it has nothing to do with the plugin JS. But a JS Error (thrown elsewhere) could prevent other scripts to be executed further. Where does SyntaxError: missing } after function body come from?
Could you try another browser? And I would also recommend to disable (temporarily) all browser extensions.
We need to track down what happens here. I tried a fresh Kirby installation and the latest Plugin release and everything works as expected.
Sorry ! I made two mistakes. We can effectively add localhost:8888 and I didn’t rememeber I had Grossery and U-block in my firefox…grrr
So I opened Chrome, I could see a “connect with your google accout”, and then I see now :
This is an error thrown by the Plugin but I’ve no idea where it comes from. It looks like it could not iterate about something it needs to iterate. Does your analytics account contain any data?
I found a weird bug in my htacces with allow, self-allow. I replaced it with the original kirby htaccess. Doesn’t change anything. Let me try with a basic kirby, maybe I’ll find the problem by this way
Got it! I’am able to reproduce this issue. It is thrown if your Google Analytics Account does not contain any data
Is your Analytics already tracking data? What is your expected behavior in such cases?
Your screenshot is looking promising. It says to me that you’re an authenticated user and a communication channel was established successfully. That is good news!
Google needs some time to gather data. I think you will get some results tomorrow Let me know!
Could you please summarize your issues for me? Where you got stuck or what was not obvious for you during the installation and configuration process. I would love to improve the README with your feedback!
Humm, well during the installation, I followed every steps of your documentation. My first problem was I didn’t find the correct Google view ID, but you find a solution that is to pass by Google Analytics > Administration > View settings.
After that, I think I didn’t add the correct “Authorized JavaScript origins URL”, because mine is http://localhost:8888 so I have set it like that.
Next problem was my modules in Firefox : Gosterry and U-block are blocking every google analytics requests. After that, I suspected my htaccess to be wrong with a ‘self allow’ property (But I can’t confirm that). And finally, the error message "Cannot read property ‘map’ of undefined’, wich is ‘e is undefined’ in Firefox…
By the way, I had fun designing the button. I think this look more friendly that yours, and it is corresponding much more to the panel design.
The Button-Text is currently hard coded as the button is generated dynamically. That, and all other Strings are getting localized in a further release.
I like your button design very much! It does match the Kirby-Style much much better. I really appreciate your effort!
But as this Plugin is publicly available I decided to follow the Sign-In Branding Guidelines.