From b4113a8ec00f7083e8ec582daf32d8ea31260fda Mon Sep 17 00:00:00 2001 From: danix Date: Thu, 26 Jul 2018 22:00:56 +0200 Subject: [PATCH] surrounded google analytics code with cookie-notice code to block it if the user doesn't accept our cookie policy --- danixland-site-plugin.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() ) { ?>