Viewing 1 post (of 1 total)
  • Author
    Posts
  • #27716
    onlineptmarketing
    Participant

    Hi I’m trying to find out if its possible to make your cookie plugin place cookies/pixels on specific pages after a visitor has accepted the cookie banner.

    I’ve posted in the support forum on wordpress.com and someone has said I could try something like:

    “add_action(‘wp_head’, ‘my_cookie_function’, 1);
    function my_cookie_function() {
    if user_has_accepted_cookies {
    if page_id = ‘x’ {
    Write cookie/pixel code here
    }
    }
    }

    But mentioned I need to find the name of the function and then find out how to hook it. Can you provide me with how to do this with your plugin please and consider adding the feature within the plugin itself in the future as I haven’t seen any that do this and it will really make your cookie plugin stand out from the rest.

    Thanks

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.