Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Igor Anic 2 posts 82 karma points
    Sep 11, 2018 @ 09:39
    Igor Anic
    0

    OneTrust cookie concent

    Hello.

    I am trying to add a cookie consent banner from OneTrust. It's easy enough to add the banner, just include a js file in the tag and the script does the magic.

    My problem is that the banner keeps reappearing everytime I navigate on my site. I have tried using another sites cookie consent script and get the same problem on my site, while on theirs the banner does not reappear on navigation after I accept. This leads me to believe that my umbraco instance is clearing cache somehow or not storing it properly for this script.

    The debug-flag in my web.config is set to false, I don't know of anything else that would force a cache reload. I have tried to browse the site on other computers/phones. I tried hosting the script locally on the server and from a cdn.

    Is anyone else using the consent script from OneTrust? Does anyone recognize this type of issue? Any help/tip is appreciated.

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Sep 11, 2018 @ 09:55
    Alex Skrypnyk
    100

    Hi Igor

    Umbraco isn't clearing cache or store cookie, you have full control over source control of pages. Maybe something with a domain name that is using in cookies, can you check what domain cookies are using?

    Alex

  • Igor Anic 2 posts 82 karma points
    Sep 11, 2018 @ 10:05
    Igor Anic
    0

    Hi Alex,

    This seems to be it. A quick search in the script and I found that it is looking at www.mysite.com, I have been browsing on mysite.com without the www. Browsing my site with the www added did not make the banner reappear.

    Thank you! This saved me a lot of headache.

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Sep 11, 2018 @ 10:29
    Alex Skrypnyk
    0

    You are welcome. Always post questions on this forum, our community is the best.

    Have a great day!

    Alex

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies