Skip to Content search facebook instagram pinterest twitter youtube

How to find HTML tags in my website templates

Article posted on

Our GDPR Compliance Kit will take care of GDPR consent for your website, you just have to remove the HTML tags we manage from your templates.

Finding HTML tags is easy, even when you don't know where to start. Here's how...

Jump to:

  1. Finding the HTML tags on your website with our GDPR Compliance Checker
  2. Find HTML code in Windows
  3. HTML code search on Mac
  4. Find HTML code in files on Linux

 

1. Finding GDPR HTML tags on your website with our GDPR Compliance Checker

Once you've completed your free GDPR website check, followed the links to get the Compliance Kit, and added your basic account details, you will see a list of the various script tags, tracking pixels and other elements we found on your website that may need opt-in consent to become GDPR compliant.

That should look something like this:

GDPR Tag Manager Wizard

Don't worry if this looks confusing - you don't need to understand it, because we do!

Following the instructions provided in the article How to check my website's GDPR compliance, add the tags to be managed to your tag manager and proceed.

The next page will show you the HTML code you need to remove from your templates, to let the Tag Manager and the GDPR Compliance Kit manage them for you properly, and it should look something like this:

GDPR Website Tag Wizard - Remove HTML Code

The highlighted sections of code shown above are the ones you need to find and remove from your website templates.

Note: when searching for text of any kind in files, it can be faster to pick a small, unique looking substring to search for. For example, in the second entry above, it is unlikely that "cdn.adsafeprotected.com/iasPET.1.js" will be present anywhere except in the code we want to remove, so we could just search for that.

Now here's how we find the code.

2. Find HTML code in Windows

3. HTML code search on Mac

grep -r 'text goes here' path_goes_here

4. Find HTML code in files on Linux

grep -rnw '/path/to/somewhere/' -e 'pattern'