How to Add Cookie Consent on WordPress

This article will walk you through how to add Evidence to Cookie Consent on WordPress so that your pixel only loads if a visitor opts-in.

Step 1: Copy your Evidence Pixel

Follow this article to copy your Evidence Pixel.

Step 2: Add your Evidence Pixel to Cookie Notice for GDPR & CCPA plugin

Install the Cookie Notice for GDPR & CCPA plugin on your WordPress website and activate the plugin.

In your WordPress admin area navigate to Settings - Cookie Notice.


There are settings here that you'll need to configure based on your needs, but make sure to check the "Enable to give to the user the possibility to refuse third party non functional cookies.checkbox. (this blocks the script from loading until the user clicks on the agree button)

Refuse consent

Click Body.


Paste the Evidence Pixel you copied in Step 1.

paste script

Configure the rest of the settings for your cookie consent popup and save the settings.


IMPORTANT: Clear website cache after you have followed these steps.

All done! Evidence notifications are now able to be displayed on your site after a visitor consents to cookies.

Relevant Articles

Create Your Free Evidence Account

Increasing your website's conversions isn't always black and white. With so many ways, it can be confusing where to start. Evidence makes this easy. Within a few minutes, you can have real-time social proof added to your site and boosting conversions from 10-15%. 

Social proof is the best way to build trust and increase buyer urgency. With a free trial to Evidence, you can adding add high-converting notifications to your website. Your free trial includes:

  • Unlimited Domains
  • Unlimited Notifications
  • Conversion Notifications
  • Hot Streak Notifications
  • Visitor Count Notifications
  • Offer Notifications
  • Announcement Notifications
  • Boomerang Tabs
  • Powerful Design Editor
  • Best-in Class Display Options

There is no long-term obligation. If you don't see results, simply cancel. Visit and create your trial account today.

If you ever need help sending data to Evidence, check out

Tags: , ,

Was this helpful?