friendsofflarum / analytics Goto Github PK
View Code? Open in Web Editor NEWA Flarum extension that provides your forum piwik's and google's analytics features
Home Page: https://discuss.flarum.org/d/1983
License: MIT License
A Flarum extension that provides your forum piwik's and google's analytics features
Home Page: https://discuss.flarum.org/d/1983
License: MIT License
Hello, I just updated my beta13 flarum to beta14 and noticed an error while using this module. Once the module is activated and configured, the home page does not display discussions
Error: Ensure the DOM element that was passed to `m.route` is not undefined
y router.js:36
10 index.js:18
e extend.js:27
oninit IndexPage.js:23
a render.js:30
M render.js:917
l render.js:153
l render.js:160
l render.js:66
u render.js:50
l render.js:103
l render.js:62
f render.js:487
f render.js:419
h render.js:302
exports render.js:964
a mount-redraw.js:14
v router.js:114
promise callback*t router.js:126
S router.js:95
a render.js:30
exports render.js:971
mount mount-redraw.js:45
y router.js:160
mount Application.js:198
mount ForumApplication.js:121
boot Application.js:176
<anonymous> (index):218
mount-redraw.js:15:23
a mount-redraw.js:15
v router.js:114
(Asynchrone : promise callback)
t router.js:126
S router.js:95
a render.js:30
exports render.js:971
mount mount-redraw.js:45
y router.js:160
mount Application.js:198
mount ForumApplication.js:121
boot Application.js:176
<anonyme>
Flarum version: 0.1.0-beta14
FriendsOfFlarum/analytics version: 0.10.0
Installed extensions:
"require": {
"flarum/approval": "^0.1.0",
"flarum/bbcode": "^0.1.0",
"flarum/core": "^0.1.0",
"flarum/emoji": "^0.1.0",
"flarum/flags": "^0.1.0",
"flarum/lang-english": "^0.1.0",
"flarum/likes": "^0.1.0",
"flarum/lock": "^0.1.0",
"flarum/markdown": "^0.1.0",
"flarum/mentions": "^0.1.0",
"flarum/pusher": "^0.1.0",
"flarum/statistics": "^0.1.0",
"flarum/sticky": "^0.1.0",
"flarum/subscriptions": "^0.1.0",
"flarum/suspend": "^0.1.0",
"flarum/tags": "^0.1.0",
"fof/analytics": "^0.10.0",
"fof/best-answer": "^0.2.0",
"fof/formatting": "^0.2.0",
"fof/forum-statistics-widget": "^0.3.0",
"fof/links": "^0.4.1",
"fof/oauth": "^0.1.0",
"fof/polls": "^0.1.3",
"fof/reactions": "^0.4.2",
"fof/spamblock": "^0.3.0",
"fof/upload": "^0.11.0",
"fof/user-bio": "^0.3.1",
"michaelbelgium/flarum-discussion-views": "^5.0",
"qiaeru/lang-french": "^1.8"
}
Administration pages are not affected by this error.
I think it would be great if the Google Analytics code could be recognized by the Google Search Console to confirm the ownership of the website.
When I try to verify my ownership through Analytics, I get the following error:
Verification method:
Google Analytics
Failure reason:
The Google Analytics tracking code on your site is in the wrong location on the page. You can verify site ownership with the tracking snippet placed in the <head> section of your home page.
Learn more: https://support.google.com/analytics/answer/174090
Please fix your implementation and reverify, or use another verification method.
Learn more: https://support.google.com/webmasters/answer/9008080#google_analytics_verification
Would it be possible to make it compatible?
PS: The Google Tag Manager code is also not recognized by the Google Search Console.
Many thanks to @santiagobiali over on the Flarum forum pages.
Posting here after attempting to solve without success.
Please let me know what I can do to help.
Limited skill set here but I have spent quite some time on trying to get the extension to install properly with Flarum BETA 6. I am not sure whether anyone has it working. @luceoas mentioned higher up (Oct 2016) that it had been updated to work with Flarum BETA 6.
Here are my steps and it failed each time (so I can reproduce):
Installed Piwik 3.0.4 with a one-click Softaculous host install. Piwki URL: http://bikepost.cc/analytics
Used
[code]composer require flagrow/flarum-ext-analytics[/code]
[code]php flarum cache:clear[/code]
Analytics then is visible under the Flarum Admin page and enabling it (checking the check box) opens a pop-up window but its appearance is broken. I filled it out anyway, at that point the extension does get added to the left admin pane but it can't load the page.
See screenshots and details below.
(I have removed the extension and deleted the Piwik install after taking these screenshots).
Details:
Pointing to https://bikepost.cc/analytics
Table 1
Authentication Code (copied and pasted from the Piwik admin page under API)
NOTE:
After unchecking the Analytics check box under Extension, the option to uninstall becomes avail but doesn't work (see last screenshot).
To remove it I have to use composer:
[code]composer remove flagrow/flarum-ext-analytics[/code]
[code]php flarum cache:clear[/code]
Screenshots:
The browser console shows error:
[code]Failed to load resource: net::ERR_CONNECTION_REFUSED[/code]
Even after performing following these instructions: https://piwik.org/faq/troubleshooting/faq_147/
My host uses apache servers so I couldn't follow the instructions here:
https://serverfault.com/questions/801651/nginx-x-frame-options-iframe-wordpress
I am Not able to See analytical Admin Panel Option in Administration Panel..Please solve this or provide fix for this.
Thanks
Can you please add support for Yandex Metrica (https://metrica.yandex.com/)
Thank you.
POST https://larpny.com/forum/api/extensions/flagrow-analytics
Thank you for the excellent extension. Any chance you can have it be "Dark Theme" compatile in future builds?
Best regards,
Please, add ability to put custom analytics JS
Everything was working great in beta 9 of flarum, however as of beta 10 the settings Pop-Out will disappear upon trying to enable or disable an analytics service. This makes it impossible to change settings or enable/disable analytics services.
I'm seeing script output 2 times
https://puu.sh/CIvoC/8a7b600531.png
With Piwik, individual pages and titles are not reported. Every page view is shown with the URL through which the user entered the forum.
Piwik published an interesting article on how to integrate single page applications https://piwik.org/blog/2017/02/how-to-track-single-page-websites-using-piwik-analytics/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.