• Resolved lucydeetz


    This is probably a noob question, but I’ve been using WordPress for only a couple of months and have a basic understanding of HTML.

    I installed the plugin and successfully added the declaration banner at the bottom of my page. Now I’d like to block the unnecessary cookies from loading before the user gives their consent.

    I’m rummaging through the content in my WP plugins folder from the cpanel, but I can’t seem to find any script tags with the search function. Can anyone please help me locate them?


Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author cookiebot


    Hi @lucydeetz,

    Thanks for reaching out!

    If you could give us your domain name, we could check your site, to see what cookies are being set. From there we’ll have a better chance at helping you find the correct script tags. If you want to keep your domain name hidden, you can send it to us by making a support ticket through our helpdesk: https://cookiebot.com/en/helpdesk. If so, please refer to this support thread in your message. We will continue the conversation in here.

    By the way, are you using a template with your WordPress installation?

    [ Signature deleted ]

    • This reply was modified 3 years, 8 months ago by cookiebot.
    • This reply was modified 3 years, 6 months ago by Jan Dembowski.
    Thread Starter lucydeetz


    Hi Cookiebot Team,

    Thank you for your reply!
    The website I need help with is this. I’m currently using the Para Blog theme.

    Plugin Author cookiebot


    You can find the scan report for your site through the Cookiebot manager:


    The report tells you which script tags are initiating the different cookies on your site, and where in the source code these script tags appear.

    As you can see from the report, the initiators can both be “Script tag” and “Inline script”. Now you’ll have to figure out how to get to those tags, so that you can you can mark them up according to our guidelines at: https://cookiebot.com/goto/help.

    If you open up the source code for your site, and look at the line for Google Analytics cookies (which you can find in the report), you’ll see that the cookies are being set by the plugin:

    GADWP v5.3.2 Universal Analytics.

    Now, open up your WordPress backend, and go to Plugins -> Editor.
    Select “Google Analytics Dashboard for WP” in the top right corner, and click “Select”.
    In the file tree go to: front->views->analytics-code.php

    In this file, you’ll find the script tag that is setting the Google Analytics code. You have to mark the script tag like this:

    <script type="text/plain" data-cookieconsent="statistics">
    	(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      ga('create', 'UA-112386193-1', 'auto');
      ga('send', 'pageview');

    And it will be executed only when the user gives consent to statistic cookies.

    Next, you have to figure out what plugins or templates are setting your facebook and twitter cookies as well. Look at the scan report to figure out where the cookies are initiated.

    Facebook code looks something like: ...<script>(function(d, s, id)...

    I would use a tool, such as Notepad++, to find out which files in your WP installation contain this code. From there, you can use the plugins editor to edit the files, or edit them directly in Notepad++.

    Our goal is to have plugin developers support Cookiebot by default, so users don’t have to do this manually. We’re not there yet, but we are working on it.

    Hope this helps,

    Let us know if you need further assistance!

    [ Signature deleted ]

    • This reply was modified 3 years, 7 months ago by cookiebot.
    • This reply was modified 3 years, 6 months ago by Jan Dembowski.
    Thread Starter lucydeetz


    Thank you so much, I’d never have done it without your help! I cleaned up the unnecessary plugins and fixed the ones I want to keep, and everything works like a charm 🙂

    Best regards!

    Plugin Author cookiebot


    You’re welcome @lucydeetz.

    Sometimes browsers might not show all cookies for a site, even if they are there. If you want to verify that you are compliant, you can order a new scan for your domain at:


    [ Signature deleted ]

    • This reply was modified 3 years, 6 months ago by Jan Dembowski.


    I am having a similar issue. I am not a programmer and so have no knowledge of php. I thought Cookiebot would offer a comprehensive solution to become compliant with the new regulations coming into effect on the 25th May… but unless I enable prior consent of all cookies on my site, I remain not compliant.

    My website is munchstudio.co.uk

    I need help please to locate the script tags, so that I can apply the attribute “data-cookieconsent” to every cookie apart from the ‘Necessary’ ones.

    Please advice, many thanks in advance!

    PS. I am on a MAC, therefore I cannot download Notepad++ either.

    I am having the exact same problems as munchstudio. Could you help me in the same way. I am on a Mac.I have spent simply hours on this.

    M T Fryer

    Plugin Author cookiebot


    Hi, sorry for the delay Ive been really busy. Unfortunately it didn’t help, I watched the video you shared and, although it seems to make sense, the structure of my WordPress theme (X Theme by Themeco) doesn’t look anything like the theme used in the tutorial. I looked everywhere but as unable to find the strings to replace.

    Hi munchstudio,

    The type of the theme you have applied on your WordPress website does not affect the way you markup the script tags. The approach is the same as it is shown in the video above.
    In the report for your site through the Cookiebot manager, there is an Initiator field for each of the cookies that have been found. It tells you where in the source code these script tags appear.
    Ones you have found the script tag (from WP admin panel: Appearance/Editor/Theme files), you should just mark it up according to Step 3 from this guideline: https://www.cookiebot.com/en/help/ and save the changes.


Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Where are the script tags?’ is closed to new replies.