• Extensions
  • FriendsOfFlarum Analytics - tracking user visits

This is probably result of insufficient resources on server where you run this command. You probably need more RAM on this host (or run this command locally and install dependencies on server from composer.lock).

    therealsujitk this is an issue with Composer and your setup and is not related to the individual extension you're trying to install. Feel free to open a new support discussion if you need help with it.

    To add to rob006 answer, it might also be caused by a limited execution time for PHP scripts. It can usually be customized.

      clarkwinkelmann I actually made a small change to the composer.json file in the flarum directory and forgot to change it back. Due to this nothing could get installed. I tried installing this extension at first using Bazzar and it failed but I didn't know why at the time. I'm guessing once an installation fails it keeps trying to install it after because after I corrected the composer.json file the next day this extension mysteriously appeared on my site. This could have been the reason (Bazzar kept trying to install the extension) for the RAM usage because after this I was able to install extensions normally again.

      a month later

      @santiagobiali clarkwinkelmann

      It seems this extension doesn't support Flarum 0.1.0 beta-12, as I got warning like this, is there any solution that I can integrate google analytics? As it is really important to know traffic details. Thanks!

      Using version ^0.8.0 for flagrow/flarum-ext-analytics
      ./composer.json has been created
      Loading composer repositories with package information
      Updating dependencies (including require-dev)
      Your requirements could not be resolved to an installable set of packages.
      
        Problem 1
          - Installation request for flagrow/flarum-ext-analytics ^0.8.0 -> satisfiable by flagrow/flarum-ext-analytics[0.8.0].
          - flagrow/flarum-ext-analytics 0.8.0 requires flarum/core ^0.1.0-beta.8 -> satisfiable by flarum/core[0.1.x-dev, v0.1.0-beta.10, v0.1.0-beta.11, v0.1.0-beta.11.1, v0.1.0-beta.12, v0.1.0-beta.8, v0.1.0-beta.8.1, v0.1.0-beta.8.2, v0.1.0-beta.9] but these conflict with your requirements or minimum-stability.
      
      
      Installation failed, deleting ./composer.json.
      baseos | u871-h78zx3sxaq9m@giow1055.siteground.us:/home/customer/www/domain.com/public_html$ 
      baseos | u871-h78zx3sxaq9m@giow1055.siteground.us:/home/customer/www/domain.com/public_html$ 

        Kurtis are you in the correct directory? Do you see a file named flarum?

          luceos

          Great! It works! Yes, I made a mistake on /public_html, when install it under flarum, it works! Thank you!

          Thank you for the extension.
          There is nothing on my dashboard there is no tab!!? I entered my track id but nothing is there
          Flarum beta12.

            Buffer if you are referring to the Matomo tab, it's only for Matomo and only if you filled the Matomo token in the extension settings. it's no different from visiting the Matomo dashboard directly.

              clarkwinkelmann Yeah! Unfortunately, Matomo is not a free service it is very expensive more than my VPS cost, also my google analytics shows nothing with no visitors at all.

                Buffer Matomo is open source so you can host it yourself if you want. Regarding the new visitors part your visitors may be using something like adblock or Firefoxes built in tracking blocker which would make it impossible for google analytics to work properly.

                Does it just embed Analytics in Flarum, or actually send more events than if you put the script inside the <head></head>?

                  danielunited it's really a rudimentary implementation, PR's are welcomed to improve that though.

                  15 days later

                  Hi guys,
                  How to check if GA tracking ID is exposured correctly by this addon? I see no active users in GA console.

                    bopersty If you open the browser console (F12) you should see some calls to Google Analytics servers to get the JS. However it's important to note that many people now use tracking protection to prevent analytics software from working properly and some browsers even enable tracking protection by default. Further people who use adblockers might also not appear in the analytics as many adblockers are also blocking google analytics.

                    It works, thank you. It was me checking the request with uBlock turned on.

                    a month later

                    Hi guys, i just tried installing this and got the following errors:

                    `Using version 0.8.0 for flagrow/flarum-ext-analytics
                    ./composer.json has been created
                    Loading composer repositories with package information
                    Updating dependencies (including require-dev)
                    Your requirements could not be resolved to an installable set of packages.

                    Problem 1
                    - Installation request for flagrow/flarum-ext-analytics 0.8.0 -> satisfiable by flagrow/flarum-ext-analytics[0.8.0].
                    - flagrow/flarum-ext-analytics 0.8.0 requires flarum/core 0.1.0-beta.8 -> satisfiable by flarum/core[0.1.x-dev, v0.1.0-beta.10, v0.1.0-beta.11, v0.1.0-beta.11.1, v0.1.0-beta.12, v0.1.0-beta.13, v0.1.0-beta.8, v0.1.0-beta.8.1, v0.1.0-beta.8.2, v0.1.0-beta.9] but these conflict with your requirements or minimum-stability.

                    Installation failed, deleting ./composer.json.`

                    is this compatible with the latest version of Flarum? (0.1.0-beta.12)

                      MartinJD you need to run the command inside of the Flarum directory (the directory that contains composer.json and config.php)

                        5 days later