Replies: 2 comments 10 replies
-
Hi @lparikka, the "reject" action is treated as a special case of the accept action ("accept none", or "accept none except categories marked as necessary"). You can check #46 to find which categories have been accepted using the |
Beta Was this translation helpful? Give feedback.
-
A solution to this was implemented in v2.7.0. To make it easier — than what was discussed above — a new function prop. called the only parameter of the function - "user_preferences" - returns the following object: {
accept_type: string, // 'all', 'necessary', 'custom'
accepted_categories: string[], // e.g. ['necessary', 'analytics']
rejected_categories: string[] // e.g. ['ads']
} Example: // ...
cc.run({
// ...
onFirstAction: function(user_preferences){
console.log('user accept type:', user_preferences.accept_type);
},
// ...
}); For more flexibility, a |
Beta Was this translation helpful? Give feedback.
-
Hi
Thank you for this nice cookie consent plugin.
I would like to get some statistics on the rejection of the cookies. As far as I understand, I can't get any feedback on rejection of the cookies as there is no onReject callback function. And it would be nice to be able to log the settings the users have selected for statistical reasons.
Regards,
Lauri
Beta Was this translation helpful? Give feedback.
All reactions