• I am testing the Policy Generator option on a staging site.

    I note on this section

    This Cookie Policy explains what cookies are and how we use them. You should read this policy to understand what cookies are, how we use them, the types of cookies we use i.e, the information we collect using cookies and how that information is used and how to control the cookie preferences. For further information on how we use, store and keep your personal data secure, see our Privacy Policy.

    You can at any time change or withdraw your consent from the Cookie Declaration on our website.

    Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

    Your consent applies to the following domains: mysite.com

    [user_consent_state]

    Most of the above makes sense, however the
    [user_consent_state] tag does not. When the page is generated, that appears as a link “Manage your consent”

    I can’t find anything about that setting, can anyone suggest anything?

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

    (@webtoffee)

    Hi @robmcp,

    The [user_consent_state] shortcode displays the current state of user consent if the user interacted with the banner. It also displays the link to change the consent. There is no option to change anything regarding the shortcode.

    Thread Starter robmcp

    (@robmcp)

    Thanks for the FAST reply.

    I am still confused though.

    On my test, I use the Read More link to navigate to /cli-policy-preview/ page. On that page I see the following.

    Your current state: No consent given. Manage your consent. << this is a link, but does nothing.

    How does a user set either No consent given, or consent given? If I select ACCEPT, and refresh the page I still see, No consent given.
    Thanks.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @robmcp,

    Please share your site URL so that we can have a look.

    Thread Starter robmcp

    (@robmcp)

    staging site Read More links here
    https://angelstaging2.wpengine.com/cli-policy-preview/

    Plugin Author WebToffee

    (@webtoffee)

    Hi @robmcp,

    Can you try excluding that page from caching and see if that makes a difference?

    Thread Starter robmcp

    (@robmcp)

    It’s on staging, there should be no caching. Could you explain what, if anything that “Manage your consent” link does?

    (Also Unrelated (What was the fix for where 1.9.1 said it was interfering with DIVI builder? ) The change doc did not elaborate. Thsnk.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @robmcp,

    Manage your consent link will show the banner again even if the user has once accepted or rejected the policy so that they can change the consent.

    As a part of the script blocking, we are manually calling the ‘DOMContentLoaded’ event after all the script has been unblocked and this conflicted with the Divi plugin. So we have disabled it in the latest update.

    Thread Starter robmcp

    (@robmcp)

    Sorry, did not follow the prev answer. I updated to version 1.9.3.
    Should this have made any difference?

    Clicking the “Manage your consent” still appears to do nothing. (Incog mode tried)

    Thread Starter robmcp

    (@robmcp)

    Can you say if Clicking the “Manage your consent” should do anything? It is configured as a link element, but I can find no information on making it do any action.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @robmcp,

    It looks like the script for the shortcode is not present in your site. To make it work, please add the below code to your theme’s functions.php

    add_action('wp_footer', 'manage_user_consent_jsblock', 11);
    function manage_user_consent_jsblock() {
    	?>
    	<script type="text/javascript">
    		jQuery(document).ready(function(){
    			jQuery('.cli_manage_current_consent').on('click',function(){
    				jQuery('#cookie-law-info-again').click();
    				setTimeout(function(){
    					if( jQuery('#cookie-law-info-bar').length > 0) {
    						jQuery(window).scrollTop(jQuery('#cookie-law-info-bar').offset().top);
    					}
    				},1000);
    			});
    		});
    	</script>
    	<?php
    }
    Thread Starter robmcp

    (@robmcp)

    Thanks, will test that now.

    Thread Starter robmcp

    (@robmcp)

    Code added, the Manage your consent still does not appear to do anything. What have I missed?

    Plugin Author WebToffee

    (@webtoffee)

    Hi @robmcp,

    We checked the page source and it looks like that code too hasn’t reflected in the site.

    Try modifying the value ’11’ in first line in the code to something below 10 and see if that makes a difference. If that too doesn’t work try changing the ‘wp_footer’ in the same line to ‘wp_head’.

    Let us know how it goes.

    Thread Starter robmcp

    (@robmcp)

    Code removed and added again, (paste error !)
    The Manage your consent link, now moves the page down and displays

    Preferences: These cookies help us store your settings and browsing preferences like language preferences so that you have a better and efficient experience on future visits to the website.

    Is that a correct action now?

    Thread Starter robmcp

    (@robmcp)

    I now see this

    You can at any time change or withdraw your consent from the Cookie Declaration on our website.
    Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.
    Your consent applies to the following domains: mystaging-site.com
    Your current state: No consent given. Manage your consent.

    If I select the manage your consent link, I get the Cookie footer popup that will allow me to disable ONLY non neccessary cookies, fair neough, however the message next to the link ALWAYS says

    Your current state: No consent given

    regardless.
    I hate to labour a point but is there a way that No consent ever changes?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Policy generator options’ is closed to new replies.