Other information related to the cookie-notice

Home » Support » Docs » Other information related to the cookie-notice

Added in Full Picture 3.3.0

How to trigger JS functions after users agree/decline cookies

When a visitor clicks any of the “accept / decline” buttons in the cookie notice, Full Picture sends a custom JavaScript event. You can use this event to trigger any other JS scripts.

Example:

document.addEventListener('fupi_popup_closed', function (e) {
	console.log(e.detail); // e.details holds information what button was clicked
});