• Hi there,
    At first I didn’t dare to ask this question, but now I see more people are asking about it. I understand the purpose of the script blocked field, but I don’t know what I have to put in there. I use the plug-ins Yoast SEO and Google Analytics Dashboard for WP, but how do I know what cookies they use and what code I have to put in the field?
    I do not read anything in you documentation about how to find the code that has to be blocked when cookies are rejected by the user…
    I understand every site is different, but maybe you can explain this a bit further?
    Thanks!
    Daphne

Viewing 1 replies (of 1 total)
  • Ambyomoron

    (@josiah-s-carberry)

    Take the example of the Google Analytics tracking cookie. You would put in that field the javascript that writes a cookie to the visitor’s device using your tracking ID and, at the same time, sends to Google the fact that the visitor visiting your site. When the visitor clicks on the button to not use 3rd party cookies, or simply fails to give an OK to the cookies, then that script is NOT executed. Thus, no information is sent to Google about the visitors visit to your site.
    The key point is that the cookie plugin only knows how to enable or disable the script that you save in the plugin configuration. If you also have that script somewhere else in your site, the cookie plugin simply doesn’t know about it and has no effect on it. So, if you want the cookie notice plugin to work correctly, you must make sure that no other plugin is creating the Google Analytics cookie and sending info to Google.
    Now, if you want to find the code used to create and manage cookies for Google Analytics, then go to analytics.google.com, where you will find complete documentation and examples of scripts. You will also find examples on this forum. The same is true with any other tracking cookie. Go to the site of the company that uses that tracking data to learn how to create their cookies.

Viewing 1 replies (of 1 total)

The topic ‘Script blocked field’ is closed to new replies.