Jdruker/ForDanna
Copied from the Confluence page
Contents
Put inside <source> tags
<script>
(function(a,t,c,l,o,u,d){a['altocloud-sdk.js']=o;a[o]=a[o]||function(){
(a[o].q=a[o].q||[]).push(arguments)},a[o].l=1*new Date();u=t.createElement(c),
d=t.getElementsByTagName(c)[0];u.async=1;u.src=l;d.parentNode.insertBefore(u,d)
})(window,document,'script','https://altocloudcdn.com/sdk/js/web/v1/ac.js','ac');
ac('init', 'YOUR-ACCOUNT-ID', {datacenter: 'YOUR-DATACENTER'});
ac('pageview');
</script>
If you want to increase line-spacing, you must manually add paragraph breaks, which in Mediawiki means adding an empty line:
<script>
(function(a,t,c,l,o,u,d){a['altocloud-sdk.js']=o;a[o]=a[o]||function(){
(a[o].q=a[o].q||[]).push(arguments)},a[o].l=1*new Date();u=t.createElement(c),
d=t.getElementsByTagName(c)[0];u.async=1;u.src=l;d.parentNode.insertBefore(u,d)
})(window,document,'script','https://altocloudcdn.com/sdk/js/web/v1/ac.js','ac');
ac('init', 'YOUR-ACCOUNT-ID', {datacenter: 'YOUR-DATACENTER'});
ac('pageview');
</script>
Note that if your code had had indents, the source tags will reproduce this formatting. For example, I'm indenting the "ac" lines at the end:
<script>
(function(a,t,c,l,o,u,d){a['altocloud-sdk.js']=o;a[o]=a[o]||function(){
(a[o].q=a[o].q||[]).push(arguments)},a[o].l=1*new Date();u=t.createElement(c),
d=t.getElementsByTagName(c)[0];u.async=1;u.src=l;d.parentNode.insertBefore(u,d)
})(window,document,'script','https://altocloudcdn.com/sdk/js/web/v1/ac.js','ac');
ac('init', 'YOUR-ACCOUNT-ID', {datacenter: 'YOUR-DATACENTER'});
ac('pageview');
</script>
Straight paste onto the page (not inside source tags)
Using <tt> tags
<tt> tags simply change the font:
<script> (function(a,t,c,l,o,u,d){a['altocloud-sdk.js']=o;a[o]=a[o]||function(){ (a[o].q=a[o].q||[]).push(arguments)},a[o].l=1*new Date();u=t.createElement(c), d=t.getElementsByTagName(c)[0];u.async=1;u.src=l;d.parentNode.insertBefore(u,d) })(window,document,'script','https://altocloudcdn.com/sdk/js/web/v1/ac.js','ac'); ac('init', 'YOUR-ACCOUNT-ID', {datacenter: 'YOUR-DATACENTER'}); ac('pageview'); </script>
With manual line breaks
If you want to control line breaks, you must add them manually (or you can add empty lines, as above, to make them into separate paragraphs):
<script>
(function(a,t,c,l,o,u,d){a['altocloud-sdk.js']=o;a[o]=a[o]||function(){
(a[o].q=a[o].q||[]).push(arguments)},a[o].l=1*new Date();u=t.createElement(c),
d=t.getElementsByTagName(c)[0];u.async=1;u.src=l;d.parentNode.insertBefore(u,d)
})(window,document,'script','https://altocloudcdn.com/sdk/js/web/v1/ac.js','ac');
ac('init', 'YOUR-ACCOUNT-ID', {datacenter: 'YOUR-DATACENTER'});
ac('pageview');
</script>
No indents
Note that if you don't put content into source tags, starting any new lines with an indent causes the text to display inside a box. Again, I'm indenting the "ac" lines at the end:
<script> (function(a,t,c,l,o,u,d){a['altocloud-sdk.js']=o;a[o]=a[o]||function(){ (a[o].q=a[o].q||[]).push(arguments)},a[o].l=1*new Date();u=t.createElement(c), d=t.getElementsByTagName(c)[0];u.async=1;u.src=l;d.parentNode.insertBefore(u,d) })(window,document,'script','https://altocloudcdn.com/sdk/js/web/v1/ac.js','ac');
ac('init', 'YOUR-ACCOUNT-ID', {datacenter: 'YOUR-DATACENTER'}); ac('pageview');
</script>