Configure Google Analytics Goal Tracking for a Sign Up Form

Overview

Setting up Google Analytics Goal Tracking for an email sign up form is a two-step process:

  1. Record an event in Google Analytics whenever someone new signs up
  2. Setup a corresponding goal in Google Analytics

Track New Signups in Google Analytics

First, you need to record an event in Google Analytics whenever someone signs up. You do this using the success callback option when configuring your Klaviyo sign up form.

<script>
    KlaviyoSubscribe.attachToForms('#email_subscribe', {
        ...
        success: function ($form) {
            _gaq.push(['_trackEvent', 'Acquisition', 'Newsletter Sign Up', 'Website']);
        }
        ...
});

$form is a jQuery wrapper around the form that was submitted. This makes it easy to get the email address or form fields if you need them.

Setup Corresponding Goal in Google Analytics

After you have setup tracking for new signup events in Google Analytics, you can configure a corresponding "Goal": 

639170
 
Was this article helpful?
0 out of 1 found this helpful