feat: 4 new analytics modules

This commit is contained in:
Nick
2019-06-29 16:45:27 -04:00
parent 2890d9ccf0
commit 9cd8657ce6
10 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
head: |
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="{{serverHost}}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{siteId}}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src='{{scriptUrl}}'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="{{serverHost}}/matomo.php?idsite=2&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->

View File

@@ -0,0 +1,26 @@
key: matomo
title: Matomo
description: Take back control with Matomo Analytics a powerful web analytics platform that gives you and your business 100% data ownership and user privacy protection.
author: requarks.io
logo: https://static.requarks.io/logo/matomo.svg
website: https://matomo.org/
isAvailable: true
props:
siteId:
type: String
title: Site ID
hint: The number index representing your site ID
default: 1
order: 1
serverHost:
type: String
title: Server Host
hint: Including https:// and optionally the port. Without trailing slash. (e.g. https://example.matomo.cloud)
default: https://example.matomo.cloud
order: 2
scriptUrl:
type: String
title: Tracking Script URL
hint: The full URL of the Matomo tracking script.
default: //cdn.matomo.cloud/EXAMPLE.matomo.cloud/matomo.js
order: 3