Track donations in google analytics

This commit is contained in:
Trever Fischer
2012-04-17 12:28:05 -04:00
parent bce2a8554b
commit 820c904d39
3 changed files with 16 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
{% extends 'base_simple.html' %}
{% block extraAnalytics %}
_gaq.push(['_addTrans', '{{donation.id}}', '', '{{donation.quantity}}', '0.00', '0.00', '', '', '']);
_gaq.push(['_addItem', '{{donation.id}}', 'donation', 'Donation', '', '{{donation.quantity}}', '1']);
_gaq.push(['_trackTrans']);
{% endblock %}
{% block content %}
Thanks for donating!
{% endblock %}