• Resolved Matthew Scheffel

    (@mscheffel)


    The top bar does not trigger the JavaScript events that the standard form triggers. This is unfortunate if you are interested in tracking your conversion analytics.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @mscheffel,

    You’re absolutely right. We’ll go and look at making that work in much the same way.

    Until then you can use the following snippet to track form submissions inside the Mailchiml Top Bar.

    
    document.getElementById('mailchimp-top-bar').addEventListener('submit', function(evt) {
      // tracking code goes here
    });
    
    Thread Starter Matthew Scheffel

    (@mscheffel)

    Thank you for your prompt reply @dvankooten, that works. It’s not perfect, as it will always register an event regardless of the success of the subscription request, but it’ll do!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Top Bar Does Not Send Form Events’ is closed to new replies.