• Resolved RVOLA

    (@rvola)


    Hello,
    I am in the process of analyzing your plugin for its acquisition by a client.

    In the free version, I find it difficult to understand the difference between “script blocker” and adding a script in “header script” in the category of a cookie.

    I also tried to test the “wt_cli_plugin_integrations” filter that absolutely does not work in my theme’s functions.php file.

    Despite reading the documentations I don’t know how to adjust your plugin if I add the Analytics tag in my functions.php file like this:

    add_action( 'wp_head', 'script_ga' );
    function script_ga() {?>
    	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXX-1"></script>
    	<script>
    		window.dataLayer = window.dataLayer || [];
    		function gtag() {
    			dataLayer.push(arguments);
    		}
    		gtag('js', new Date());
    		gtag('config', 'UA-XXXXXX-1');
    	</script>
    <?php }

    Any help would be welcome

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @rvola,

    To manage your google tag manager script via our plugin, please go to Cookie Category page and edit any category and add the script of gtag manager under the Head script area(just like you add in site theme’s header.php file).

    Thread Starter RVOLA

    (@rvola)

    Thanks for your feedback,
    however can give more details regarding:

    * difference between header_script and the “script blocker” menu
    * why the “wt_cli_plugin_integrations” filter does not work?

    Plugin Author WebToffee

    (@webtoffee)

    Hi @rvola,

    Script blocker automatically blocks the cookies set via the script supported by it without the need for any further configuration.

    Could you please mention from where did you get the wt_cli_plugin_integrations filter?

    Thread Starter RVOLA

    (@rvola)

    ok, and if I wanted to add scripts myself (by code), how should I do?

    For the filter it’s here :
    wp-content/plugins/cookie-law-info/public/modules/script-blocker/script-blocker.php:8

    Plugin Author WebToffee

    (@webtoffee)

    Hi @rvola,

    If you want to block your custom scripts, please add them under the head script or body script are under any category edit page.

    We do not provide any filter to modify the script blocker in free version. If you require advanced customization, please check out the paid version.

    Thread Starter RVOLA

    (@rvola)

    Thanks for the clarification, I will take a license to explore this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem with the blocker script?’ is closed to new replies.