summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTero Kojo <tero.kojo@theqtcompany.com>2015-02-09 09:34:15 +0200
committerTero Kojo <tero.kojo@theqtcompany.com>2015-02-09 07:37:39 +0000
commit8f33f59ae1415bcab9379bcf7fe7a92dfea63368 (patch)
tree53639e62dfb620657afca230749d8997c424d381
parent190173f67af3f83e84c57bb88e2531a4ca72f53a (diff)
Adding google analytics
Added script to get google analytics up to date. Change-Id: I365130273433ccb4bca5ef389257287995057ab7 Reviewed-by: Tero Kojo <tero.kojo@theqtcompany.com>
-rw-r--r--template.qt12
1 files changed, 12 insertions, 0 deletions
diff --git a/template.qt b/template.qt
index 7381267..2b6b832 100644
--- a/template.qt
+++ b/template.qt
@@ -18,6 +18,18 @@
<link rel="alternate" type="application/rss+xml" title="Planet Qt" href="http://planet.qt.io/rss20.xml" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Planet Qt</title>
+<script type="text/javascript">
+ (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', '//www.google-analytics.com/analytics.js', 'ga');
+
+ ga('create', 'UA-54043535-2', 'qt.io');
+ ga('set', 'forceSSL', true);
+ ga('send', 'pageview');
+</script>
</head>
<div class="header" id="header">