Google Analytics
[Ultimately_Untrue_Thought.git] / theme / templates / base.html
index 9881e7a..fd8f60f 100644 (file)
@@ -43,7 +43,7 @@
                        {% endfor %}
              </nav>
            {% endif %}
-           <a href="{{ SITEURL }}" class="title">☆✦ {{ SITENAME }} ✦☆ …</a>
+           <a href="{{ SITEURL }}" class="title">☆✦ {{ SITENAME }} ✦☆ …</a>
       </header>
 
          <div class="wrapper">
@@ -91,7 +91,7 @@
 
       <footer>
                <p role="contentinfo">
-                 ©2016 {{ AUTHOR }} • Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>. Theme modified from <a href="https://github.com/fle/pelican-simplegrey">pelican-simplegrey</a>.
+                 ©2016 {{ AUTHOR }} • Proudly powered by <a href="http://docs.getpelican.com/en/3.6.3/">Pelican</a>. Theme modified from <a href="https://github.com/fle/pelican-simplegrey">pelican-simplegrey</a>.
        </p>
 
          </footer>
        </div>
 
        {% if GOOGLE_ANALYTICS %}
-         <script>
-               var _gaq=[['_setAccount','{{ GOOGLE_ANALYTICS }}'],['_trackPageview']];
-               (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
-               g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
-               s.parentNode.insertBefore(g,s)}(document,'script'));
-         </script>
-    {% endif %}
+          <script>
+           (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+               (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+                                    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+           })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+           ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
+           ga('send', 'pageview');
+          </script>
+        {% endif %}
 
 </body>
 </html>