Skip to content

Commit 21d8e35

Browse files
authored
Merge pull request graphql#34 from lacker/source
add google analytics to graphql.org
2 parents 52853ea + 8791354 commit 21d8e35

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

site/_core/Site.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ var Site = React.createClass({
6363
inputSelector: '#algolia-doc-search'
6464
});
6565
`}} />
66+
<script dangerouslySetInnerHTML={{__html: `
67+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
68+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
69+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
70+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
71+
72+
ga('create', 'UA-44373548-16', 'auto');
73+
ga('send', 'pageview');
74+
`}} />
6675
</body>
6776
</html>
6877
);

0 commit comments

Comments
 (0)