Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
Document Properties Marker
doctypeproject
overridetrue
extract-short-desctrue
render-asdefinition-list
Short Description
Display Space Attribute
attributedescription
 
Doctypeprojecthide
NameIntegration for Piwik 
Tags
Tag List
namesConfluence Add-on
 hide
Space Tags
Display Space Attribute
attributelabels
hide
Sort Keyhide
LogoIntegration for Piwikhide
extract-short-description-from-metadata-tabletruehide
render-metadata-asdefinition-listhide
documentation-json-urihttps://www.smartics.eu/confluence/download/attachments/12156954/docmap.json?api=v2hide
Panel
borderStylenone

Livesearch
spaceKeypiwik
sizelarge
placeholderSearch this documentation

Column

 

Section
titleOverview

Available on the Atlassian Marketplace Piwik is the leading open-source analytics platform that gives you more than just powerful analytics. Confluence is your platform where work becomes teamwork. This add-on makes integrating calls to the Piwik API from your Confluence pages much easier!

Section
titleWithout this Add-on

Without macros of this add-on you could call the Piwik API by adding an HTML script tag like this:

Code Block
languagexml
<script type='text/javascript'>
   var _paq = _paq || [];
   _paq.push(['setDocumentTitle', 'My Title']);
</script> 
Section
titleWith this Add-on

Using our macros allows you to simply add your information via a dialog:

The macro will take care for rendering the JavaScript snippet inside of the HTML script tag.

Section
titleMacros

This add-on provides the following macros to call the API of your Piwik server:

Display Table
doctypemacro
render-modedefinition

Section
titleConfiguration

To use the macros you need Piwik installed on one of your servers and to configure your Confluence server.

As a Confluence administrator add the following as General Configuration -> Custom HTML:

Code Block
languagexml
<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
   _paq.push(['trackPageView']);
   _paq.push(['enableLinkTracking']);
  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://[YOUR PIWIK SERVER]";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', [YOUR SITE ID]]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
    g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="[YOUR PIWIK CALL]" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code --> 

Replace the placeholder with values according to your installation.

PlaceholderDescriptionExample
[YOUR PIWIK SERVER]
The URL (without the protocol) to your Piwik server.
www.example.com/piwik/
[YOUR SITE ID]
The identifier of the site within your Piwik configuration you want to track.73
[YOUR PIWIK CALL]
The call to the Piwik API on your server in case the user has disabled JavaScript in her browser.
http://www.smartics.de/piwik/piwik.php?idsite=73
Note Box

Please note that all macros use the JavaScript API. Therefore: If the user has JavaScript deactivated in her browser, the noscript image will be employed and the macro initiated calls will not be counted with Piwik.

For more information please refer to information provided by Piwik:

Section
titleOpen Source

The source code is licensed under the GNU GENERAL PUBLIC LICENSE, Version 3, and is available on Bitbucket.

Piwik is an internationally registered trademark, currently assigned to the project’s founder and lead developer, Matthieu Aubry. Piwik is Free Software released under the GPL 3. For more information on Piwik visit http://piwik.org.

 

 

 

 

 

 

Transclusion
documentHOMESPACE:Try projectdoc Teaser
idsContent