• Resolved alexpr1987

    (@alexpr1987)


    Hello, i am activated your plug in and i am evalutate to buy pro version. But there is a problem. The scroll accept not fire the pixel. I need setting reloard on scrolling accept or there are problems…

    I also activated adavanced rendering option but still not working.

    Can you help me? I use pixelyoursite for facebook pixel plug in integrated with your plug in.

    For now i deactivate your plug in becouse need refresh page when scrolling to activate pixel. If you need a copy staging envirnoment i can give you to test.

    Thank you

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

Viewing 1 replies (of 1 total)
  • 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
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Scrolling accept not working’ is closed to new replies.