• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Tracking user interaction

    Mango Automation general Discussion
    3
    5
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      henryblu
      last edited by

      Hello,

      I have a dashboard display which runs unattended on Mango and I would like to track how often people are clicking on it and interacting with it.
      So far I have considered detecting mouse movement using JS, something like: https://stackoverflow.com/questions/13206042/detecting-mouse-movement-without-jquery
      And then updating a point in the JSON store when this interaction is detected.
      Using a Meta Data Source I could potentially record the change in the JSON point. Once the data point is set up I can then generate graphs, determine statistics and so on.

      What do you think of this approach? There are no API publishers for this that I know of, but I think it could be a really valuable feature of Mango.

      Jared WiltshireJ 1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire @henryblu
        last edited by

        @henryblu said in Tracking user interaction:

        And then updating a point in the JSON store when this interaction is detected.
        Using a Meta Data Source I could potentially record the change in the JSON point.

        I would say the easiest way to do what you want is set an interval timer in the dashboard for say one minute. If you detect any mouse movement in that one minute, set a binary point (just create a virtual data point, no change) value to 1. If no movement was detected set it to 0.

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • Jared WiltshireJ
          Jared Wiltshire
          last edited by

          Also you can plug Google Analytics into the dashboards via UI Settings

          Developer at Radix IoT

          1 Reply Last reply Reply Quote 0
          • terrypackerT
            terrypacker
            last edited by

            The other thought I had was you could setup an HTTP Receiver data source and make a GET request to set a point value. This approach would keep from having to allow SET permission on the Virtual data point Jared suggested.

            1 Reply Last reply Reply Quote 0
            • H
              henryblu
              last edited by

              Hi guys,

              Thanks very much for the advice. Upon @Jared-Wiltshire's recommendation I pasted my
              Google Analytics Property ID into the UI settings page. It's then as simple as creating an onclick event: https://developers.google.com/analytics/devguides/collection/analyticsjs/events

              <div flex layout="column" onclick="ga('send', 'event', 'buttons', 'click','B005');"></div>
              

              From here I was able to view real-time and historic page interactions based on clicking. I could also create events for mouse moving, but it generates a lot of events as you would expect and in google analytics you are limited to 500 hits per session or 10 million events per month.

              <div flex layout="column" onmousemove="ga('send', 'event', 'mouse', 'move','B005');"></div>
              

              Really happy though - exactly what I was after.
              0_1512363020533_79cc2909-7665-4277-8ef0-f8983f6165ca-image.png

              1 Reply Last reply Reply Quote 0
              • First post
                Last post