MediaWiki:Common.js: Difference between revisions
From SprezzOSWiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | })(); | ||
<g:plusone size="medium"></g:plusone> | |||
<script type="text/javascript"> | |||
(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> |
Revision as of 07:34, 6 February 2013
var _gaq = _gaq || []; var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; _gaq.push(['_require', 'inpage_linkid', pluginUrl]); _gaq.push(['_setAccount', 'UA-28599323-1']); _gaq.push(['_setDomainName', 'sprezzatech.com']); _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); })(); <g:plusone size="medium"></g:plusone> <script type="text/javascript"> (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>