prevent statistics code from running when minidash is disabled
[plstackapi.git] / planetstack / templates / admin / newminidashboard.html
index f1180ab..af08427 100644 (file)
@@ -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") {