Declaration not appearing in my website
Can someone help me, I am not being shown all the information of the cookie declarations, I have added the scrip but it is not shown.
http://jbib01mstr2r53iprep.dxcloud.episerver.net/privacy-policy
-
Hi Luis,
After visiting your website mentioned above I could see that you have been using a very unusual method of implementing the CookieDeclaration script:
<div data-epi-block-id="71352" id="HtmlBlock_71352" data-props="{
"html": "<a href=\"javascript:CookieConsent.renew();\">Change your consent</a><br><br>\n\nDECLARATION:<br>\n<script id=\"CookieDeclaration\" src=\"https://consent.cookiebot.com/73bb29f0-3059-4d54-b77c-f2816af45fd3/cd.js\" type=\"text/javascript\" async></script>",
"contentLink": "71352",
"isEditMode": false,
"editAttributes": ""
}">However, this method does indeed add the script tag to the page, but doesn't actually load the script. And that is why the CookieDeclaration is not displayed on the page. So we would recommend just adding the script inline as you normally would, just add:
<a href="javascript:CookieConsent.renew();">Change your consent</a>
<script id="CookieDeclaration" src="https://consent.cookiebot.com/0000000-000000000-00000/cd.js" type="text/javascript" async=""></script>Regards,
Spas0 -
I doing that test it still does not appear, I have also tried to put only the "<script... " on a blank page and they do not appear either.
only this
<script id="CookieDeclaration" src="https://consent.cookiebot.com/0000000-000000000-00000/cd.js" type="text/javascript" async=""></script>
but with the correct .js
Note: also comment that 2 or 3 weeks ago if it worked well
0 -
Hi Luis,
This is really strange and unusual for the CookieDeclaration script. Could you please provide us a link where you have been implemented only the cookie declaration script on a blank page, so we could investigate the issue further and help you solve it afterwards.
Thanks in advanceRegards,
Spas0 -
http://jbib01mstr2r53iinte.dxcloud.episerver.net/my-pages/my-privacy/
If it asks for authentication:
email: prueba_cookie@gmail.com
password: 123456
0 -
Hi Luis,
Thank you for the provided link and credentials.
However, we do not see any trace of the CookieDeclaration on that page. The script itself is inserted on the page but it doesn't load. I think that the CMS platform or framework you are using is blocking the script to load on a page. It seems like it just doesn't allow you to place a script tag anywhere you want on the page. The data-props attribute seems strange and I think that it stops the CookieDeclaration script from loading.
Runningtypeof CookieDeclaration
in the console also returns "undefined".Regards,
Spas0 -
Thank you very much, the problem has been solved, I have put the declaration of the scrip in the CSHTML and it has worked
0
Please sign in to leave a comment.
Comments
6 comments