/**
 * @module Analytics
 * Uses Google Analytics custom events API to fire events for client-side
 * Modal and Form Validation flows.
 */
define(["neue/events"], function(Events) {
  "use strict";

  // We'll only fire GA Custom Events if the GA object exists
  if(typeof(_gaq) !== "undefined" && _gaq !== null) {
    Events.subscribe("Validation:InlineError", function(topic, args) {
      _gaq.push(["_trackEvent", "Form", "Inline Validation Error", args, null, true]);
    });

    Events.subscribe("Validation:Suggestion", function(topic, args) {
      _gaq.push(["_trackEvent", "Form", "Suggestion", args, null, true]);
    });

    Events.subscribe("Validation:SuggestionUsed", function(topic, args) {
      _gaq.push(["_trackEvent", "Form", "Suggestion Used", args, null, true]);
    });

    Events.subscribe("Validation:Submitted", function(topic, args) {
      _gaq.push(["_trackEvent", "Form", "Submitted", args, null, false]);
    });

    Events.subscribe("Validation:SubmitError", function(topic, args) {
      _gaq.push(["_trackEvent", "Form", "Validation Error on submit", args, null, true]);
    });
  }

});

@@ -304,24 +304,42 @@
 !== null) %7B%0A
+    // Validation%0A
     Events.s
@@ -1128,16 +1128,376 @@
 %0A    %7D);
+%0A%0A    // Modals%0A    Events.subscribe(%22Modal:Open%22, function(topic, args) %7B%0A      _gaq.push(%5B%22_trackEvent%22, %22Modal%22, %22Open%22, %22#%22 + args.attr(%22id%22), null, true%5D);%0A    %7D);%0A%0A    Events.subscribe(%22Modal:Close%22, function(topic, args) %7B%0A      console.log(args.attr(%22id%22));%0A      _gaq.push(%5B%22_trackEvent%22, %22Modal%22, %22Close%22, %22#%22 + args.attr(%22id%22), null, true%5D);%0A    %7D);
 %0A  %7D%0A%0A%7D)

Add back in analytics for modals.