Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Example of CaPReT-Piwik Javscript plugin use, with Piwik configuration
<!--Capret-widget starts (src=// below is deliberate)-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="http://track.olnet.org/capret/js/jquery.plugin.clipboard.js"></script>
<script src="http://track.olnet.org/capret/js/oer_license_parser.js"></script>
<!--[if lt IE 8]>
<script src="//cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js"></script>
<![endif]-->
<script
src="http://track.olnet.org/capret/js/capret-piwik.js"
data-piwik-url="http://mypiwik.example.org/"
data-piwik-idsite="6"
data-piwik-rec="0"
data-piwik-debug="1"
>
</script>
<!--Captret-widget ends-->
<pre>
Data attributes:
* piwik-url : Base URL of your local Piwik install (default: http://track.olnet.org/),
* piwik-idsite : Piwik site ID integer (default: 1),
* piwik-rec : Whether Piwik should 'record' (default: 1),
* piwik-debug : Basic console output (default: 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment