Commit 75aecca1 authored by allan's avatar allan

add matomo embed script

parent 3719933e
Pipeline #1491 passed with stage
in 0 seconds
......@@ -118,6 +118,8 @@ function intergalactic_scripts() {
wp_enqueue_script( 'gdpr-script', get_template_directory_uri() . '/js/gdpr.js', array( 'jquery' ), '20181905', true );
wp_enqueue_script( 'matomo-script', get_template_directory_uri() . '/js/matomo.js', array(), '20182405', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
......
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before
"trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u = '//stats.bof.nl/';
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', '22']);
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'piwik.js';
s.parentNode.insertBefore(g, s);
})();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment