Subscribe: RSS
  • So, I'm guessing that I need to use the extra called Analytics to add the tracking code to my pages - and use Google Analytics Dashboard to show the stats on the dashboard.
    But ehm... I'm not sure how either of those two extras work and I can't really seem to figure it out.

    This page: https://docs.modx.com/extras/revo/analytics doesn't tell me where to put the "usage example" code - I'm guessing in the template (and according to a quick google search in the head somewhere), but it would be nice to know what best practices there are with this within the modx system (as well as if there's more I need to do). Also, which of the usage examples are recommended (I don't really know enough about this to figure out which parameters are important/relevant for my project)?

    About the dashboard widgets: I've added them to the default dashboard, but nothing shows up yet - that might be because I haven't entered any info in the settings yet though (and can't until I can ask my boss what the password is for the relevant google account, so that I can set up the analytics account, but anyway...)

    Also, in the "view details" part of the extra it says this:
    To use this component the user needs to have "googleanalytics" permissions.
    The administrator user needs to have the "googleanalytics_settings" permissions.
    Are those just "oh, remember not to change this" or a "you need to set these permissions" thing? And if the latter, where and how (sorry, I haven't gotten that far in the modx guide yet, and a quick lookaround in the manager (under "manage>users") didn't really lead me to any answers)?
    • I'm pretty sure the permissions are not automatic, since you may not want everyone to have them. I'm not that familiar wit GA, but if there's a GoogleAnalytics user group (or something similar), you may be able to gain permission by adding yourself to the group.

      Giving yourself the permission is kind of complicated unless the extra creates the necessary Policy and Policy Template for you. If it does, you can probably create a Context Access ACL policy for the Administrator group using that GA Policy.

      If you don't have to mess with it that often, you may be able to get in just by making yourself a sudo user (temporarily) in Manage -> Users (it's a checkbox). You may have to flush permissions, then log out and back in for it to take effect.
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/MODx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting