From 38177ff8a8cedee59fe8cd3b8211d2581ff02518 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sun, 9 Apr 2017 11:37:34 -0700 Subject: [PATCH] Add Google analytics tracking --- titanembeds/templates/embed.html.j2 | 2 ++ titanembeds/templates/google_analytics.html.j2 | 9 +++++++++ titanembeds/templates/site_layout.html.j2 | 1 + 3 files changed, 12 insertions(+) create mode 100644 titanembeds/templates/google_analytics.html.j2 diff --git a/titanembeds/templates/embed.html.j2 b/titanembeds/templates/embed.html.j2 index 08ce0e5..748f700 100644 --- a/titanembeds/templates/embed.html.j2 +++ b/titanembeds/templates/embed.html.j2 @@ -129,5 +129,7 @@ + {% include 'google_analytics.html.j2' %} + diff --git a/titanembeds/templates/google_analytics.html.j2 b/titanembeds/templates/google_analytics.html.j2 new file mode 100644 index 0000000..07ef9ac --- /dev/null +++ b/titanembeds/templates/google_analytics.html.j2 @@ -0,0 +1,9 @@ + diff --git a/titanembeds/templates/site_layout.html.j2 b/titanembeds/templates/site_layout.html.j2 index fffd87c..2bca5d1 100644 --- a/titanembeds/templates/site_layout.html.j2 +++ b/titanembeds/templates/site_layout.html.j2 @@ -52,5 +52,6 @@ {% block script %}{% endblock %} + {% include 'google_analytics.html.j2' %}