Giter VIP home page Giter VIP logo

analytics's People

Contributors

andrewdyer avatar clarkwinkelmann avatar davwheat avatar dependabot[bot] avatar dsevillamartin avatar flarum-bot avatar imorland avatar karaok491 avatar luceos avatar rob006 avatar santiagobiali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

analytics's Issues

Error: Ensure the DOM element that was passed to `m.route` is not undefined

Description

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

Steps to reproduce

  1. Install fof,
  2. Activate fof,
  3. Configure the module,
  4. Enable Piwik (Release note : piwik untested, but should be fine XD),
  5. Fill in the following fields:
    • Piwik domain or URL,
    • Site ID
    • Track visitors across all subdomains of Flarum
    • Prepend the site domain to the page title when tracking
    • Track individual user accounts => Do not track
    • Authentication Token
  6. Save configuration
  7. Go to the home page

Console error

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> 

Configuration

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"
    }

Additional information

Administration pages are not affected by this error.

Compatibility with Google Search Console verification

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.

Failures with Flarum BETA 6

Many thanks to @santiagobiali over on the Flarum forum pages.
Posting here after attempting to solve without success.

@luceos @jordanjay29

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):

  1. Installed Piwik 3.0.4 with a one-click Softaculous host install. Piwki URL: http://bikepost.cc/analytics

  2. Used
    [code]composer require flagrow/flarum-ext-analytics[/code]
    [code]php flarum cache:clear[/code]

  3. 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

No Analytical Admin Panel Option

I am Not able to See analytical Admin Panel Option in Administration Panel..Please solve this or provide fix for this.

Thanks

Analytics not showing up

Settings:
image
(When I try to disable some settings even when saving they come back)

Admin Panel:
image

Frame Link:
image

Error on Uninstall

POST https://larpny.com/forum/api/extensions/flagrow-analytics


Warning: array_key_exists(): The first argument should be either a string or an integer in /home/public_html/forum/vendor/illuminate/support/Collection.php on line 1032

Catchable fatal error: Argument 1 passed to Flarum\Extension\ExtensionManager::migrateDown() must be an instance of Flarum\Extension\Extension, null given, called in /home/public_html/forum/vendor/flarum/core/src/Extension/ExtensionManager.php on line 164 and defined in /home/public_html/forum/vendor/flarum/core/src/Extension/ExtensionManager.php on line 238

Dark theme compatibility

Thank you for the excellent extension. Any chance you can have it be "Dark Theme" compatile in future builds?

Best regards,

Settings Pop-Out disappears

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.