Skip to content

Instantly share code, notes, and snippets.

@aliciaduffy
Created March 21, 2016 19:02
Show Gist options
  • Save aliciaduffy/4aeed943a4f0ac06e3cc to your computer and use it in GitHub Desktop.
Save aliciaduffy/4aeed943a4f0ac06e3cc to your computer and use it in GitHub Desktop.
GA Events Gravity Forms Example
$(document).on('gform_confirmation_loaded', function(){
if ( window.location.pathname == '/' ){
sendEvent( petaGA_FormCategory_eNews, petaGA_FormAction_Submitted, 'Subscribe to E-News: Front Page');
} else {
sendEvent( petaGA_FormCategory_eNews, petaGA_FormAction_Submitted, 'Subscribe to E-News: Interior Page');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment