Du ser en gammel version af denne side. Se den nuværende version.

Sammenlign med nuværende Vis sidehistorik

« Forrige Version 7 Næste »

This will embed Google Analytics on a Page, or if used at the Confluence Admin > Layouts > Main Layout: On all pages.

Name

google-analytics

Macro Body Processing

No macro body

Output format

HTML

Usage

{google-analytics}

Code

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxx-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>

Optional, the code can be placed at Confluence Admin > Custom HTML > At End Of the HEAD location

  • Ingen etiketter