Last active
December 11, 2015 22:49
-
-
Save boffey/4672244 to your computer and use it in GitHub Desktop.
Google + Tracking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change googlePlusShare to your function name | |
<div class="g-plusone" data-callback="googlePlusShare"></div> | |
<!-- Place this tag after the last +1 button tag. --> | |
<script type="text/javascript"> | |
window.___gcfg = {lang: 'en-GB'}; | |
(function() { | |
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; | |
po.src = 'https://apis.google.com/js/plusone.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); | |
})(); | |
</script> | |
<script> | |
function googlePlusShare() { | |
// Track Google | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment