aboutsummaryrefslogtreecommitdiffstats
path: root/photowall/templates/analytics.html
diff options
context:
space:
mode:
authorroot <root@hhvm.trawg.com>2015-04-15 05:42:32 +1000
committerroot <root@hhvm.trawg.com>2015-04-15 05:42:32 +1000
commitd61467b2002305a4fde8cb3c5d928ba1781e08cb (patch)
treec99fbd304bc027c3e83028c807e7bfd052267b9e /photowall/templates/analytics.html
parentb2a02381f5f5630b9b269130ab092c3b1a39b649 (diff)
downloadpelican-themes-d61467b2002305a4fde8cb3c5d928ba1781e08cb.tar.gz
first commit of Photowall theme
Diffstat (limited to 'photowall/templates/analytics.html')
-rw-r--r--photowall/templates/analytics.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/photowall/templates/analytics.html b/photowall/templates/analytics.html
new file mode 100644
index 0000000..e27adf8
--- /dev/null
+++ b/photowall/templates/analytics.html
@@ -0,0 +1,46 @@
+{% if GOOGLE_ANALYTICS %}
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{GOOGLE_ANALYTICS}}']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+{% endif %}
+{% if GAUGES %}
+ <script type="text/javascript">
+ var _gauges = _gauges || [];
+ (function() {
+ var t = document.createElement('script');
+ t.type = 'text/javascript';
+ t.async = true;
+ t.id = 'gauges-tracker';
+ t.setAttribute('data-site-id', '{{GAUGES}}');
+ t.src = '//secure.gaug.es/track.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(t, s);
+ })();
+ </script>
+{% endif %}
+{% if PIWIK_URL and PIWIK_SITE_ID %}
+ <script type="text/javascript">
+ {% if PIWIK_SSL_URL %}
+ var pkBaseURL = "{{ PIWIK_SSL_URL }}";
+ {% else %}
+ var pkBaseURL = "{{ PIWIK_URL }}";
+ {% endif %}
+ var _paq = _paq || [];
+ _paq.push(["trackPageView"]);
+ _paq.push(["enableLinkTracking"]);
+ (function() {
+ var u=(("https:" == document.location.protocol) ? "https" : "http")+"://"+pkBaseURL+"/";
+ _paq.push(["setTrackerUrl", u+"piwik.php"]);
+ _paq.push(["setSiteId", "{{ PIWIK_SITE_ID }}"]);
+ var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
+ g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
+ })();
+ </script>
+{% endif %}