Skip to content

Commit

Permalink
add the GA for SPA home page
Browse files Browse the repository at this point in the history
  • Loading branch information
imjeen committed Mar 30, 2016
1 parent 9a25da9 commit 79415f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,17 @@ <h1 v-cloak v-else>{{htmlHead.title}}</h1>
<script src="<%= htmlWebpackPlugin.files.js[i] %>?v=<%= (new Date()).getTime() %>"></script>
<% } %>

<!-- 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','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-75678690-1', 'auto');
ga('send', 'pageview');

</script>

</body>
</html>
3 changes: 2 additions & 1 deletion static/sass/pages/_alpha.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@charset "UTF-8";

.header{
background-color: rgba(246,246,246,1);
box-shadow: 0 1px 3px rgba(0,0,0,.14);
background: hsla(0,0%,100%,.9);
position: relative;
line-height: 45px/$ppr;
height: 45px/$ppr;
Expand Down

0 comments on commit 79415f1

Please sign in to comment.