Cookie Notice

You are here:
Estimated reading time: 1 min

Usually when referring to Cookies, we’re talking about tracking scripts, such as Google Analytics, Tag Manager, Facebook Pixel etc.

The site itself uses internal Cookies for its functionality, so these are excluded from this topic.

You can enable the Cookie notice prompt in Customizer > General > Cookie Notice.

This prompt mainly serves as a simple method to notify the visitor that inside this website there are cookies used, and continuing visiting is basically an acceptance of this fact.

If you do want to make the best use of this feature, i recommend containing your custom tracking scripts into a custom JS event (eg: reycore/cookie_notice/accepted ) that is fired when the user accepts, or, when the page is loaded and the prompt was already accepted eg:

add_action('wp_footer', function(){
		jQuery(document).on('reycore/cookie_notice/accepted', function(e, after_accepted_prompt ){
			// scripts to execute 

The after_accepted_prompt argument will return true when the visitor clicks on the prompt Accept button.

Was this article helpful?
Dislike 0
Views: 499

Suggest article improvements

Please use this form to suggest improvements and report missing or outdated content. Support requests will most likely not be answered and it's best to use the Support Request Form instead. Thanks!