Skip to content

Instantly share code, notes, and snippets.

@heytomsmith
Last active April 8, 2016 22:58
Show Gist options
  • Save heytomsmith/4014fcb6fd314105e82e440ba3f61677 to your computer and use it in GitHub Desktop.
Save heytomsmith/4014fcb6fd314105e82e440ba3f61677 to your computer and use it in GitHub Desktop.
<!--A VERY SPICY 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-76139961-1', 'auto');
ga('send', 'pageview');
</script>
<!--GARNISHED WITH A LIL FACEBOOK SDK
This goes right inside <body>
-->
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1710299632573353',
xfbml : true,
version : 'v2.5'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- SOME SAUCY OPENGRAPH TAGS-->
<meta property="og:{tagName}" content="{tagValue}"/>
<meta property="og:title" content="The Art of a Meatball"/>
<meta property="og:image" content="images/hero.jpg"/>
<meta property="og:url" content="http://artofameatball.com"/>
<meta property="og:type" content="article"/>
<meta property="og:description" content="The meatball. It’s juicy. It’s flavorful. It’s an Italian classic. This is your guide to getting it right."/>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@artofameatball">
<meta name="twitter:title" content="The Art of a Meatball">
<meta name="twitter:description" content="The meatball. It’s juicy. It’s flavorful. It’s an Italian classic. This is your guide to getting it right.">
<meta name="twitter:image" content="images/hero.jpg">
<!--Tweet button-->
<a target="blank" href="https://twitter.com/intent/tweet?url=http%3A%2F%2Fartofameatball.com&via=artofameatball&text=I%20just%20became%20a%20master%20meatballer.%20Join%20me%20at%20artofameatball.com!">Share on Twitter</a>
<!--FB Button-->
<a target="blank" href="https://www.facebook.com/dialog/share?app_id=1710299632573353&display=popup&href=http%3A%2F%2Fartofameatball.com&redirect_uri=http%3A%2F%2Ffacebook.com%2Fartofameatball">Share on Facebook</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment