I am looking to call a new javascript function only after a new comment has been made by a user. Specifically, I want to include new javascript on the resulting page of the page reload after submitting the new comment form on a blog post.
Does anyone know how to do this?
My end goal is that I want to make a call using Mixpanel's (http://www.mixpanel.com) javascript API call and make an event called "Comment added" for a specific user. I know how to do the mixpanel side of things but am confused by the this specific use case of wordpress.
Thanks in advance!