Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add AddThis Social Button and Google Analytics

  • Loading branch information...
commit 7437741831805eb8fee114a8d9e6add4d8ad5bd9 1 parent cd7f7a3
Ubuntu authored
Showing with 47 additions and 8 deletions.
  1. +47 −8 index.html
View
55 index.html
@@ -97,7 +97,27 @@
.footer a {
color: #ccccff;
}
+ /* http://support.addthis.com/customer/portal/questions/1136093-share-buttons-in-center-position */
+ div.addthis_toolbox {
+ width:180px;
+ margin: 0 auto;
+ }
+
</style>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-43033541-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
+
</head>
<body>
<!-- Mobile-friendly navbar adapted from example. -->
@@ -184,13 +204,23 @@
<!-- http://twitter.github.io/bootstrap/base-css.html#buttons -->
<button class="btn btn-success btn-large">Preorder</button>
</div>
- <div class="span8 offset2 social">
- <!-- Social buttons are not included in default Bootstrap. -->
- <!-- See: http://noizwaves.github.io/bootstrap-social-buttons -->
- <button class="btn btn-twitter"><i class="icon-twitter"></i> | Twitter</button>
- <button class="btn btn-facebook"><i class="icon-facebook"></i> | Facebook</button>
- </div>
- </div>
+
+<div class="span8 offset2 social">
+ <!-- AddThis Button BEGIN -->
+ <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
+ <a class="addthis_button_preferred_1"></a>
+ <a class="addthis_button_preferred_2"></a>
+ <a class="addthis_button_compact"></a>
+ <a class="addthis_counter addthis_bubble_style"></a>
+ </div>
+ <script type="text/javascript">var addthis_config =
+ {"data_track_addressbar":true};</script>
+ <script type="text/javascript"
+ src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51e5f5d9549fdf9b"></script>
+ <!-- AddThis Button END -->
+</div>
+
+
</div>
<div class="row section1">
@@ -290,6 +320,15 @@
</div>
</div>
</div>
-
+<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-43033541-1', 'herokuapp.com');
+ ga('send', 'pageview');
+
+</script>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.