Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #908557


    I’d like to track comments on my blog in Google Analytics, more specifically to use them as a goal.
    Basically, I want the submit button for comments to link to a thank you page, which I’ll set as my goal.

    I found a Yoast plugin that allows this kind of redirections. I set it up, but apparently Enfold overrides this setting with its own redirection to the comment ID in the discussion.

    How can I override Enfold’s default comment settings to allow this redirection to a new page?

    Thanks in advance


    Hey Robin,
    Might I suggest another approach, try using a function to track your comment clicks.
    Try adding this to your function.php:

    function track_comment(){
    $('.form-submit .submit[type="submit"]').on('click', function() {
              ga('send', 'event', 'button', 'click', 'comment');
    add_action('wp_footer', 'track_comment');

    Please note that tracking can sometimes take a little while to show up at Google Analytics.

    Best regards,


    Thanks a lot for your input Mike!
    I just set it up, will wait a few days and get back to you in case the tracking doesn’t work.


    Good to hear, we will leave this open to hear back from you.

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.