Skip to content
Browse files

switch to metron for analytics, add gauges

  • Loading branch information...
1 parent 5acef49 commit 7a000759d4374cfeecb1fc23b93dcec1e0b91fa7 @lukeman lukeman committed Nov 28, 2011
View
1 pinaxsite_project/requirements/project.txt
@@ -15,6 +15,7 @@ dregni==0.1.dev1
template_utils==0.4p2
nashvegas==0.6.3
httplib2==0.6.0
+metron==0.1
slumber==0.3.1
python-dateutil==1.5
View
9 pinaxsite_project/settings.py
@@ -150,6 +150,7 @@
"uni_form",
"nashvegas",
"debug_toolbar",
+ "metron",
# local
"downloads",
@@ -184,6 +185,14 @@
EVENT_TYPES = [
]
+METRON_SETTINGS = {
+ "google": {
+ 1: "UA-2401894-10",
+ },
+ "gauges": {
+ 1: "4ed411e2f5a1f53746000004",
+ }
+}
DEBUG_TOOLBAR_CONFIG = {
View
9 pinaxsite_project/templates/site_base.html
@@ -1,4 +1,5 @@
{% load i18n %}
+{% load metron_tags %}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -56,13 +57,9 @@
</p>
</footer>
- <script src="{% block jquery_src %}{{ STATIC_URL }}pinax/js/jquery-1.3.2.min.js{% endblock %}" type="text/javascript"></script>
+ <script src="{% block jquery_src %}//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js{% endblock %}" type="text/javascript"></script>
<script src="{{ STATIC_URL }}pinax/js/base.js" type="text/javascript"></script>
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
- <script type="text/javascript">
- _uacct = "UA-2401894-10";
- urchinTracker();
- </script>
+ {% analytics %}
{% block extra_body %}{% endblock %}
</body>
</html>

0 comments on commit 7a00075

Please sign in to comment.
Something went wrong with that request. Please try again.