Merge pull request #5 from thephred/google-analytics

Add google analytics tracking and some small fixes.
This commit is contained in:
Michael Goff 2018-12-04 11:11:11 -08:00 committed by GitHub
commit 236a68328c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,10 @@
<!-- Google Analytics -->
<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', 'UA-110275540-2', 'auto');
ga('send', 'pageview');
</script>

View File

@ -21,5 +21,6 @@
{% include header.html %}
<div id="content">{{ content }}</div>
{% include footer.html %}
{% include google-analytics.html %}
</body>
</html>

View File

@ -137,5 +137,6 @@
menuDom.appendChild(itemDom);
}
</script>
{% include google-analytics.html %}
</body>
</html>

View File

@ -148,6 +148,7 @@ pre > code {
}
h1 {
font-size: 24px;
line-height: 40px;
margin: 0;
display: inline-block;

View File

@ -23,6 +23,10 @@
-ms-flex-align: center;
align-items: center;
h1 {
line-height: 1.15;
}
p {
opacity: 0.75;
margin-bottom: 25px;

View File

@ -220,7 +220,7 @@ stylesheet: index
<div class="col-10_sm-12">
<h2>Learn more and get involved with the community</h2>
<p>
Join the conversation and help shape the evolution of crossplane. Here are a few ways to get started:
Join the conversation and help shape the evolution of crossplane. Here are a few ways to get started.
</p>
</div>