prevent statistics code from running when minidash is disabled
diff --git a/planetstack/templates/admin/newminidashboard.html b/planetstack/templates/admin/newminidashboard.html
index f1180ab..af08427 100644
--- a/planetstack/templates/admin/newminidashboard.html
+++ b/planetstack/templates/admin/newminidashboard.html
@@ -1,3 +1,5 @@
+{% load admin_static %}
+
 {% if not DISABLE_MINIDASHBOARD %}
 
 <div id="newMiniDashboard">
@@ -32,6 +34,8 @@
 <div id="avgLoadGraph" ></div>
 </div>
 
+<script src="{% static 'page_analytics.js' %}"></script>
+
 <script>
 /** If the analytics have already been set -- read them in on page load **/
 if (typeof window != "undefined") {