GDPR Cookie Compliance (CCPA, PIPEDA ready) – WordPress plugin | WordPress.org

This now seems to be the definitive free WordPress plugin for cookies. Nice interface, lots of options, and lets you add the JS code to be triggered inside the plugin’s options.