Merge pull request 'update matomo link' (!59) from main_matomo into main
Reviewed-on: tfgrid/info_docs_tfgrid4#59
This commit is contained in:
commit
9a33c6b0b1
@ -54,6 +54,11 @@ const config: Config = {
|
||||
'/js/crisp.js',
|
||||
async: false,
|
||||
},
|
||||
{
|
||||
src:
|
||||
'/js/matomo.js',
|
||||
async: true,
|
||||
},
|
||||
],
|
||||
|
||||
themeConfig: {
|
||||
|
29
static/js/matomo.js
Normal file
29
static/js/matomo.js
Normal file
@ -0,0 +1,29 @@
|
||||
/* Matomo Tag Manager */
|
||||
|
||||
var _mtm = window._mtm = window._mtm || [];
|
||||
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
|
||||
(function() {
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.src='https://analytics.threefold.io/js/container_47J8h6pI.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
|
||||
/* End Matomo Tag Manager */
|
||||
|
||||
|
||||
|
||||
|
||||
/* Matomo */
|
||||
|
||||
var _paq = window._paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//analytics.threefold.io/";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '20']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
|
||||
/* End Matomo Code */
|
Loading…
Reference in New Issue
Block a user