We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45739
    • 64 Posts
    I tried installing Google Analytics in MODX 2.3.1 by manually by downloading it from http://modx.com/extras/package/googleanalyticsdashboard and following this post:


    Place the package at .../core/packages/
    Go to Extras, Installer
    Click on the arrow just to the right of "Download Extras" and choose "search locally for packages"

    I did that, installed analytics, and now when I go to my manager, this is all I see: (this is on any page I load now)





    See root thread for more details:
    http://forums.modx.com/thread/92730/can-t-get-google-analytics-dashboard#dis-post-506676

    I tried renaming the analytics folders but the error still persists...

    How can I fix these? Any help is greatly appreciated! Thank you!!
    • Get in the database in the site_plugins table and edit the row for the plugin, set its "disabled" field to 1.

      Delete the core/cache directory and everything in it.

      Make sure your browser cache and cookies for the domain are cleared.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 45739
        • 64 Posts
        Quote from: sottwell at Aug 17, 2014, 03:41 AM
        Get in the database in the site_plugins table and edit the row for the plugin, set its "disabled" field to 1.

        Delete the core/cache directory and everything in it.

        Make sure your browser cache and cookies for the domain are cleared.

        The Google Analytics doesn't seem to have a table under site_plugins:

          • 45739
          • 64 Posts
          I may be making progress..but I'm definitely stuck here.

          On the http://modx.com/extras/package/googleanalyticsdashboard page in the installation instructions, it says to Change the permissions of the folders 'manager/controllers' and 'manager/templates' to 777 (which I did)

          I went back and changed the permissions back to what they were, and went in the controllers and templates folder, deleting the analytics folder (but zipping just in case/for backup/restoration services in the same directory) in both directories.

          My manager now looks like this:






          How can I assign the default template back to the MODX manager?




          Update: I duplicated the default folder and named it analytics under the manager/controllers and manager/templates directories. This seemed to restore my manager to how it was, but I feel like this is not a reliable fix.. I was tempted to uninstall the Analytics addon from the package manager, but I feared it may mess things up again. Any suggestions? Should I just leave it how it is now and not touch anything else? [ed. note: yankindeez last edited this post 9 years, 7 months ago.]
            • 38237
            • 83 Posts
            I don't think the issue is related to which theme you are using? Why you think so if you haven't changed it?? My guess is you set the wrong permission on manager/templates folder and your index.css file failed to load.

            - take a backup (if you have softacolous it is very easy and fast process)
            - re-install the package using the package manager following it's instructions.

            Is this an upgrade from 2.2.x ?? If so, it looks broken to me.

            NB. I downloaded the package and installed it with absolutely no issues.

            EDIT

            Now I understand your mistake laugh
            You installed the wrong extra, check the full name of the extra I posted the fix about http://forums.modx.com/thread/92380/google-analytics-dashboard-widget-1-0-1-pl-layout-fix-for-modx-2-3-x

            The widget and the the dashboard extras are 2 different extras, for the widget check http://modx.com/extras/package/googleanalyticsdashboardwidget

            If you are after a dashboard i would recommend to you BigBrother http://modx.com/extras/package/bigbrother [ed. note: mina_gerges last edited this post 9 years, 7 months ago.]
              • 45739
              • 64 Posts
              Quote from: mina_gerges at Aug 17, 2014, 11:30 AM
              I don't think the issue is related to which theme you are using? Why you think so if you haven't changed it?? My guess is you set the wrong permission on manager/templates folder and your index.css file failed to load.

              - take a backup (if you have softacolous it is very easy and fast process)
              - re-install the package using the package manager following it's instructions.

              Is this an upgrade from 2.2.x ?? If so, it looks broken to me.

              NB. I downloaded the package and installed it with absolutely no issues.

              EDIT

              Now I understand your mistake laugh
              You installed the wrong extra, check the full name of the extra I posted the fix about http://forums.modx.com/thread/92380/google-analytics-dashboard-widget-1-0-1-pl-layout-fix-for-modx-2-3-x

              The widget and the the dashboard extras are 2 different extras, for the widget check http://modx.com/extras/package/googleanalyticsdashboardwidget

              If you are after a dashboard i would recommend to you BigBrother http://modx.com/extras/package/bigbrother

              Thank you, I installed that one and made your quick fix. However, I don't see it anywhere. Should I see it right on the home dashboard of the manager?
                • 38237
                • 83 Posts
                Settings, Dashboards, right-click the dashboard where you desire to include the widget in, then click add widget.
                  • 42046
                  • 436 Posts
                  I just did this playing about with this extra in 2.3.1

                  To solve it, go into your database through phpMyAdmin, find manager_theme in the modx_system_settings table, replace the value analytics with default, then manually clear the cache.