Created
January 28, 2014 18:46
-
-
Save sbward/8673630 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Segment.io tracking: which modules were selected? | |
var props = {}; | |
var $chkboxes = $('.module-option input[type=checkbox]'); | |
$chkboxes.each(function() { | |
props[$(this).attr('name')] = $(this).attr('checked'); | |
}); | |
analytics.trackForm(form, 'Build Created', props); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment