script_loader_tag->add_tag( 'gadwp-nprogress', $this->get_cookie_types() ); $this->script_loader_tag->add_tag( 'gadwp-frontend-item-reports', $this->get_cookie_types() ); $this->script_loader_tag->add_tag( 'gadwp-tracking-analytics-events', $this->get_cookie_types() ); $this->script_loader_tag->add_tag( 'gadwp-pagescrolldepth-tracking', $this->get_cookie_types() ); $this->script_loader_tag->add_tag( 'gadwp-front-widget', $this->get_cookie_types() ); $this->script_loader_tag->add_tag( 'googlecharts', $this->get_cookie_types() ); $this->buffer_output->add_tag( 'wp_head', 99, array( 'google-analytics.com' => $this->get_cookie_types(), 'googletagmanager.com' => $this->get_cookie_types(), 'ga-disable-' => $this->get_cookie_types(), ), false ); $this->buffer_output->add_tag( 'wp_footer', 99, array( 'google-analytics.com' => $this->get_cookie_types(), 'googletagmanager.com' => $this->get_cookie_types(), 'ga-disable-' => $this->get_cookie_types(), ), false ); /* For new versions of GADWP */ $this->script_loader_tag->add_tag( 'exactmetrics-frontend-script', $this->get_cookie_types() ); $this->buffer_output->add_tag( 'wp_head', 6, array( 'GoogleAnalyticsObject' => $this->get_cookie_types(), 'googletagmanager' => $this->get_cookie_types(), ), false ); add_filter( 'exactmetrics_tracking_analytics_script_attributes', function( $atts ) { $atts['type'] = 'text/plain'; $atts['data-cookieconsent'] = cookiebot_addons_output_cookie_types( $this->get_cookie_types() ); return $atts; } ); } }