1var myGoogleAnalyticsController = Marionette.Object.extend( { 2 initialize: function() { 3 //console.log( 'init' ); 4 this.listenTo( Backbone.Radio.channel( 'forms' ), 'submit:response', this.submitResponse ); 5 }, 6 submitResponse: function( response ) { 7 if( 'error' == response ) return; 8 this.triggerEvent( response.data.settings.title ); 9 }, 10 triggerEvent: function( formTitle ) { 11 //console.log( 'trigger' ); 12 try { 13 gtag('event', 'generate_lead', { 'event_label': formTitle }); 14 fbq('track', 'Lead', {content_category: 'Form', content_name: formTitle}); 15 } catch ( err ) { console.log( err ); } 16 } 17}); 18jQuery( document ).ready( function() { 19 new myGoogleAnalyticsController(); 20});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.