PageSourceSearch

https://www.apli.com/themes/custom/apli/js/ga_webform_push.js?tmb479

js apli.com collected 2026-10-03 21:27:18 UTC 1,449 bytes, 37 lines download raw bytes

1(function ($, Drupal) {
2
3  Drupal.behaviors.ga_webform_push = {
4    attach: function (context) {  
5      $('body', context).once('ga_webform_push').each(function () {
6        // Track submission events.
7        $('form.webform-submission-form', context).submit(function() {
8          console.log(typeof _gaq);
9          if (typeof _gaq !== "undefined") {        
10            _gaq.push(['_trackEvent', 'Webform', 'Form submitted', 'New Submission for ' + $(this).attr("id")]);
11          }
12          else if (typeof ga === 'function') {
13            //ga('send', {hitType: 'event', eventCategory: 'form', eventAction: 'send', eventLabel: $(this).attr("id")});
14          }else {
15          }
16        });
17
18        $('#block-suscripcionnewsletter form', context).submit(function() {
19          console.log(typeof _gaq);
20          if (typeof _gaq !== "undefined") {        
21            _gaq.push(['_trackEvent', 'Webform', 'Form submitted', 'New Submission for Newsletter']);
22          }
23          else if (typeof ga === 'function') {
24            //ga('send', {hitType: 'event', eventCategory: 'form', eventAction: 'send', eventLabel: 'Newsletter'});
25          }else {
26          }
27        });
28
29        $('body').on('click','.paragraph--type--catalogs a', function (e) {
30          //ga('send', {hitType: 'event', eventCategory: 'downloads', eventAction: 'Catalegs', eventLabel: $(this).attr("href")});
31        });
32      });
33    }
34  };
35  
36})(jQuery, Drupal);
37

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.