PageSourceSearch

https://sc-project.us/assets/web/customer/modules/CDev/GoogleAnaly…/library/src/ga-search.js?tstamp=1791492499

js sc-project.us collected 2026-10-09 02:54:11 UTC 829 bytes, 27 lines download raw bytes

1/* vim: set ts=2 sw=2 sts=2 et: */
2
3/**
4 * Copyright (c) 2001-present X-Cart Holdings LLC. All rights reserved.
5 * See https://www.x-cart.com/license-agreement.html for license details.
6 */
7
8define('googleAnalytics/base/searchEvent', [ 'googleAnalytics/event' ], function(Event) {
9  return Event.extend({
10    namespace: 'search',
11
12    processReady () {
13      jQuery('.search-product-form button[type=\'submit\'], .simple-search-product-form button[type=\'submit\']').click(_.bind(this.registerSearchSubstring, this))
14    },
15
16    registerSearchSubstring (event) {
17      var substring = jQuery(event.currentTarget).closest('form').find('input[name="substring"]').val()
18      if (substring) {
19        this.sendSearchSubstringEvent(substring, event)
20      }
21    },
22
23    sendSearchSubstringEvent (substring, event) {
24    }
25  });
26});
27

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.