You should use composer once the extension is ready. Downloading files seperately will only break the extension and possibly flarum. Once the extension is up-to-date I'll explain how to do this.
hyn/analytics ; google analytics website statistics
I'm closing in on a release. Just need to fix a minor issue concerning editing the UA code and the version increment for packagist. Then it's a go. Keep you posted.
Successful install-
I use Piwik so I guess I can't use it yet, but this is a useful plugin!
Installed but doesnt appear on Extensions List?
i used composer to install extension and its under vendor/hyn directory not in Extensions
.
Red then you need to edit your composer.json and change flarum/composer-installer
to *
, see: https://discuss.flarum.org/d/1479-problem-with-extensions-not-installing-nov-2015
- Edited
Fixed, Thank you.
I installed this plugin and it works. But somehow it seems only to fire a pageview at the load of the forum front page. When I click a post, it doesn't seem to fire a pageview. I'm not sure if this is because the plugin is built like that or I did something wrong.
I know Flarum actually doesn't load a new page when navigating the forum since everything loads with ajax, but to use Analytics effectively, we need a faux pageview to be fired at the click of a post and at the click of a category. I guess this can be done easily by firing a pageview each time the URL changes.
Thanks again for providing this extension. I hope you can use the feedback.
Jahman we need a faux pageview to be fired at the click of a post and at the click of a category. I guess this can be done easily by firing a pageview each time the URL changes.
The url actually also changes when scrolling. I think I can handle this by listenening to a m.redraw()
event, not sure that's even possible though, will look into it.