Javascript event for recipe rating

Recipe Kit emits a global javascript event that you can hook into if you'd like to do something on your site after a customer rates one of your recipes.

You can hook into this by using the following JS code:

document.addEventListener('rk_rating_event', function (e) {

console.log('Found Recipe Kit Rating Event);

// do something now, like showing confetti, a popup, or an email signup.

}, false);

In the future, I can add in information like the rating given. If you want that, let me know and I'll bump it up the to-do list!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us