From: danix Date: Thu, 26 Jul 2018 20:00:56 +0000 (+0200) Subject: surrounded google analytics code with cookie-notice code to block it if the user... X-Git-Tag: release_13102020-1743~1 X-Git-Url: https://git.danix.xyz/?p=danixland-site-plugin.git;a=commitdiff_plain;h=b4113a8ec00f7083e8ec582daf32d8ea31260fda;hp=0b37291cb093b12307582fe0a110732fb8917fb8 surrounded google analytics code with cookie-notice code to block it if the user doesn't accept our cookie policy --- diff --git a/danixland-site-plugin.php b/danixland-site-plugin.php index 0245d55..6db6576 100644 --- a/danixland-site-plugin.php +++ b/danixland-site-plugin.php @@ -2,6 +2,10 @@ /* Plugin Name: Site Plugin for danix.xyz Description: Site specific code changes for danix.xyz +Plugin URI: https://danix.xyz +Version: 0.7 +Author: Danilo 'danix' Macri +Author URI: https://danix.xyz */ /** @@ -74,7 +78,8 @@ add_shortcode('download', 'danix_download_button'); * The google analytics code * */ -function danix_google_anal() {?> +function danix_google_anal() { + if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { ?>