• Resolved alexpr1987

    (@alexpr1987)


    I am testing your plug in on staggin site.
    I have notice that after i scroll to accept the cookie the pixel facebook event are not fired. Just if i press “accept button”.

    Another thing, how and where the plug in store cookie from client? There is a file or something like that?

    Thanks you

    The page I need help with: [log in to see the link]

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

    (@webtoffee)

    Hi @alexpr1987,

    Kindly update the plugin to the latest version and then go to Settings > Advanced > enable the Advanced script rendering option.

    Let us know how it goes after checking.

    Thread Starter alexpr1987

    (@alexpr1987)

    I have alredy activated rendering, but not working, need refresh page or press accept, in that case no need refresh to activate cookie.

    Thread Starter alexpr1987

    (@alexpr1987)

    I tried to disable all my cache plug in but still not working.

    Can you make a check? I don’t like so much reload the page. Thank you

    Plugin Author WebToffee

    (@webtoffee)

    Hi @alexpr1987,

    PixelYourSite plugin is using the GDPR Cookie Consent plugin’ “Accept” button click event to load scripts and as such that code is not compatible with our “Accept on Scroll” feature. So please try adding below code snippet in your theme’s functions.php.

    add_action('wp_footer', 'wt_cli_scroll_accept_extension');
    function wt_cli_scroll_accept_extension() {
    	if (class_exists('Cookie_Law_Info')) {
    	?>
    		<script>
    			jQuery(function(){
    				if( Boolean( CLI.settings.scroll_close ) ===true && CLI.hideBarInReadMoreLink()===false && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) {
    					window.addEventListener("scroll", wt_cli_accept_on_scroll,   false);
    				}
    				function wt_cli_accept_on_scroll() {
    					if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes') {
    						window.removeEventListener("scroll", wt_cli_accept_on_scroll, false);
    						jQuery('#cookie_action_close_header').trigger("click");
    					}
    				}
    			});
    		</script>
    	<?php
    	}
    }
    Thread Starter alexpr1987

    (@alexpr1987)

    Hello, this solution worked fine thanks. Do you integrate this code in the next releases? So i can remove from theme

    Plugin Author WebToffee

    (@webtoffee)

    Hi @alexpr1987,

    This has not been integrated in the plugin. Please keep using the code snippet.

    Thread Starter alexpr1987

    (@alexpr1987)

    Ok, you will in next releases? Thank you very much

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Accept by scroll not unlock pixel facebook event’ is closed to new replies.