Simple WordPress plugin to implement https://github.com/AmauriC/tarteaucitron.js.
This plugin is NOT AFFILIATED WITH Tarteaucitron.js.
<button data-wputarteaucitron-allow-service="pardot" type="button">Allow cookies from Pardot</button>/* Hide this block if pardot is accepted */
[data-wputarteaucitron-service-pardot="1"] .my-block {
display: none;
}add_filter('wputarteaucitron__services', function ($services) {
/* array key should match tarteaucitron.job.push('array_key'); */
$services['twitteruwt'] = [
/* Name */
'label' => 'Twitter Pixel',
/* Used to store the value in database */
'setting_key' => 'twitter_pixel_id',
/* Matches the tarteaucitron.user.user_key */
'user_key' => 'twitteruwtId',
/* A value to help identify the service key */
'example' => '123456'
];
return $services;
}, 10, 1);