Viewing 15 posts - 31 through 45 (of 45 total)
  • Author
    Posts
  • #1179464

    Hi,

    Sorry for my late reply!

    1- We can use the case in following thread as an example.
    // https://kriesi.at/support/topic/matomo-cookie-opt-out/#post-1146376
    User is using Matomo Analytics and it sets a cookie named “MATOMO_SESSID”. To be able to add that cookie in Cookie Consent window in Enfold, they would need to add a new Custom Cookie with cookie name “MATOMO_SESSID” and path “/”. You can check cookie path in browsers developer tools – https://imgur.com/a/cRMyzIe
    So, Enfold would delete (see “Compare Action” section below) “MATOMO_SESSID” cookie set by Matomo and sets it again when user accepts the cookie. If you would like to add a toggle for that cookie, you can use shortcode as following

    [av_privacy_custom_cookie cookie_name="MATOMO_SESSID"]

    Here is what “Compare Action” options do:
    – Cookie equals cookie name= Finds cookies with “MATOMO_SESSID” name only and deletes them.
    – Cookie starts with cookie name= Finds cookies that start with “MATOMO_SESSID” and delete them. For example if you have “MATOMO_SESSID_WP_COOKIES” and “MATOMO_SESSID_WP_COOKIES_CUSTOM”, both would be deleted.
    – Cookie contains cookie name= Finds cookies that contain “MATOMO_SESSID” in cookie name and deletes them. For example if you have “MATOMO_SESSID_COOKIES” and “CUSTOM_MATOMO_SESSID_COOKIES” both would be deleted.

    2- You can add description to cookies not defined by Enfold using Additional Custom Cookies however it currently does not work with cookies that have random numbers (such as user ID) in cookie name. That is why we have added a filter in functions.php file of your theme. In upcoming version, Enfold will support those too but since we are not done testing yet, we provided you filter solution for the time being.

    3- That would not work since browser detects them as two different domains and you cannot access cookies on another domain due to security reasons.

    Best regards,
    Yigit

    #1179647

    OK – i think i slowly get an idea what it does.
    Can we please become more practical now?

    Can you please tell me a plugin that sets cookies, so i can practice & test??

    #1179660

    Hi,

    Sure! You can use WooCommerce and add a product to your cart :)

    Best regards,
    Yigit

    #1180020

    We talk about woocommerce later when we got the basics.
    Please let me know another plugin to test which doesnt need a half working day for the setup

    #1180023

    Hi,

    I cannot think of any other plugin that adds cookies at the moment but setting up WooCommerce does not take that long. After installing you can simply import dummy data – https://docs.woocommerce.com/document/product-csv-importer-exporter/dummy-data/ by referring to this post – https://docs.woocommerce.com/document/importing-woocommerce-sample-data/

    Best regards,
    Yigit

    #1180118

    OK, i will.
    Can you please meanwhile answer this one?
    #1178737

    #1180197

    Hey,

    The answer to your question in #1178737 is:

    3- That would not work since browser detects them as two different domains and you cannot access cookies on another domain due to security reasons.

    Regards,
    Yigit

    #1180264

    1: Are you sure about that since its a subdomain?
    2: “you cannot access cookies on another domain due to security reasons“…every time i load a youtube video i do access / accept cookies from another domain. Whats the difference??
    3: Whats a possible solution for the task then? (I need to run the shop in a separate database)

    I know sooooo many website with that construct (website & shop on subdomain).
    They are all screwed now??

    #1180282

    Hi,

    1- Yes, i asked our dev Günter for confirmation and forwarded you his response.
    2- The difference is you are accepting cookies from Youtube on one domain but when you go to another domain, you are going to need to accept them again as cookies set by X site will not be carried over when you visit Y site.
    3- I could not test this as i am having a server issue on my test site however i believe this would help – https://stackoverflow.com/a/23086139. I will test it when i hear back from my hosting providers and if it works, i will explain how you can apply on your sites :)

    Best regards,
    Yigit

    #1180300

    Following your information has one logical consequence:
    The concept of using subdomains is gone forever – at least where the GDPR is in charge
    Sorry, but i cant believe that this is true.
    This would have leaded to a hughe shitstorm throughout the whole internet and it would change the whole concept.

    Anyway….for the moment i need a solution.
    What about this?
    1: Multisite??
    2: Having a second Cookie-Modal when user jump from “mainwebsite” to the shop?
    3: any idea else?

    M.

    #1182045

    Hi,

    Please follow following instructions:
    1- Download pre-built Enfold child theme – https://kriesi.at/documentation/enfold/child-theme/ and activate it.
    2- Copy /enfold/js/avia-snippet-cookieconsent.js file to your child theme and place it inside /enfold-child/js/ folder
    3- Open the file on your child theme and find following line

    document.cookie = CookieName + "=" + CookieValue + expires + "; path=" + path;

    and change it to following

    document.cookie = CookieName + "=" + CookieValue + expires + "; path=" + path + '; domain=maskenzauber.com';

    (note the domain!)
    4- Add following code to Functions.php file of your child theme

    function wp_change_avia_cookieconsent_js() {
    wp_dequeue_script( 'avia-cookie-js' );
    wp_enqueue_script( 'avia-cookie-js-child', get_stylesheet_directory_uri().'/js/avia-snippet-cookieconsent.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_avia_cookieconsent_js', 100 );

    5- Apply the same changes on your subdomain if you would like cookies that are accepted on subdomain to be accepted on domain as well. No need to change domain to subdomain in avia-snippet-cookieconsent.js file.

    Please try it and let us know if you have any other questions :)

    Best regards,
    Yigit

    #1190706

    Hello Yigit,
    i added a subdomain and imported woocommerce dummy content via the Enfold Importer:
    shop.ich-will.org
    (the same credentials than on the main domain)

    Since i am not sure if i understood your instructions you might take a look at it?
    Here is what i did:
    In “ich-will.org” (child)
    1: i edited as you said:
    document.cookie = CookieName + “=” + CookieValue + expires + “; path=” + path + ‘; domain=ich-will.org‘;
    Correct?

    2:
    I added your code into the functions
    Correct?

    In “shop.ich-will.org” (child)
    1:
    I added your code also into the functions of shop.ich-will.org

    BUT I DID NOT edit the /js/avia-snippet-cookieconsent.js of shop.ich-will.org
    Correct?
    (To me it seems as if it should be the other way round)

    Most important:
    The domain has to accept the cookies from the subdomain because on the subdomain there will be the shop.
    (But maybe its more secure if they both accept their cookies crosswise)

    Kind regards
    M.

    PS: There is another issue:
    On https://ich-will.org/wp-admin/nav-menus.php its not possible to add items to the menu.
    The toggles dont react

    #1190879

    Hi Maren,

    I logged in and checked your modifications in Appearance > Editor. You have done everything correctly, however avia-snippet-cookieconsent.js file on child theme is throwing an error for some reason. Menu tabs are probably not working due to that error.

    Could you please post FTP logins here privately as well so we can look further into it?

    Best regards,
    Yigit

    #1190922

    Hello Yigit,
    yes.
    See private field

    #1196525

    Hi Maren,

    I am sorry for my late reply!

    I was seeing JS error in console as soon as I switch to child theme. I could not figure out what was breaking JS. I wanted to check once again however login credentials are no longer working. Could you create logins once again and share please?

    Best regards,
    Yigit

Viewing 15 posts - 31 through 45 (of 45 total)
  • You must be logged in to reply to this topic.