From: danix Date: Sun, 8 Nov 2020 10:18:46 +0000 (+0100) Subject: added matomo tracking code to site-plugin X-Git-Tag: release_08112020-1118 X-Git-Url: https://git.danix.xyz/?p=danixland-site-plugin.git;a=commitdiff_plain;h=5e0f7db7ea49194634075fb459ada53b26862333 added matomo tracking code to site-plugin --- diff --git a/danixland-site-plugin.php b/danixland-site-plugin.php index 395263e..a6859e5 100644 --- a/danixland-site-plugin.php +++ b/danixland-site-plugin.php @@ -76,3 +76,29 @@ add_action( 'wp_enqueue_scripts', 'baguette_enqueue_assets' ); * Do not translate smileys into emoticons. */ add_filter( 'option_use_smilies', '__return_false' ); + +/* + # Add matomo tracking js code to head + */ +if ( ! function_exists( 'matomo_tracking' ) ) : + function matomo_tracking() { + ?> + + + +