About This Dashboard
This website provides information regarding the usage of all websites and web applications implemented at the Southwest Watershed Research Center (SWRC) in Tucson, AZ. This website can be used to assess the impact and understand the usage of the various tools created at SWRC.
This prototype dashboard will serve as a container for more in-depth web analytics in the future.
Calculating the Total Visits
In order to calculate the total visits for all SWRC website, a Python script runs hourly as an automated task. This task updates a file with the totals for each of the metrics by date range. These values are then sent from the server to the client in order for the client to render them.
In order to only count the visits from outside our network, we created custom filters through Google Analytics. This allows us to exclude the range of IP addresses within our internal network.
Generating the Charts
The charts generated for a specific website are created using the Google Core Analytics API, Google Embed API, and the Google Charts API. The graphics are refreshed when the user either selects a different website from the dropdown list or if a temporal query is performed.