Skip to content

Commit

Permalink
debug analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
gopatrik committed Apr 1, 2015
1 parent 0419c54 commit 133d753
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion demo1.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(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-38987463-8', 'auto');

ga('create', 'UA-38987463-4', 'auto');
ga('send', 'pageview');
</script></head><script>function preload(arrayOfImages) {
$(arrayOfImages).each(function(){
Expand Down
3 changes: 2 additions & 1 deletion demo2.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(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-38987463-8', 'auto');

ga('create', 'UA-38987463-4', 'auto');
ga('send', 'pageview');
</script></head><script>function preload(arrayOfImages) {
$(arrayOfImages).each(function(){
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(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-38987463-8', 'auto');

ga('create', 'UA-38987463-4', 'auto');
ga('send', 'pageview');
</script></head></head></html><body><section style="height:100px; bottom: 20px; left: 20px; z-index:100;" class="absolute narrow mt-large"><div style="text-align:right;" class="third"><div style="background-image:url(img/astro_small.jpg);" class="portrait-frame inline"></div></div><div class="two-third"><div style="font-size:8px;" class="mt">Author.</div><div style="margin-bottom:5px;" class="nm small">Patrik Goethe</div><div><a href="https://twitter.com/gopatrik" data-show-count="true" class="twitter-follow-button"></a></div><div style="font-size:8px;" class="nm">PS. Not real astronaut.</div></div></section><div class="space-frame"><section class="space-inner-frame"><section class="center"><img src="img/spacejs.png" width="170px" alt="" class="inline"></section><p class="center nm">HTML-driven narrative parallax. </p><p class="small center subtle">(No js required)</p><h3 class="center small"><a href="demo1.html">Try the demos</a></h3><div class="center"><a href="demo1.html"><img src="img/demo1thumb.jpg" width="200px" class="shadow"></a><a href="demo2.html" style="margin-left: 20px;"><img src="img/demo2thumb.jpg" width="200px" class="shadow"></a></div><p class="center small">View on <a href="https://github.com/gopatrik/space.js" class="bold">GitHub </a>or read <a href="/articles/space.js/" class="bold">the Article</a><p class="center"><a href="https://twitter.com/share" class="twitter-share-button" data-text="Space.js – HTML-driven narrative parallax." data-via="gopatrik" data-size="large">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p></p></section></div><div class="space-frame"><section class="space-inner-frame"><h2>Creating a frame</h2>

Expand Down
4 changes: 3 additions & 1 deletion spacemixins.jade
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ mixin head(title)
script(src="jquery-2.0.2.min.js")
link(rel="stylesheet", type="text/css", href="css/main.css")
link(rel="stylesheet", type="text/css", href="css/demo.css")

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-38987463-8', 'auto');

ga('create', 'UA-38987463-4', 'auto');
ga('send', 'pageview');

mixin lastNav
Expand Down

0 comments on commit 133d753

Please sign in to comment.