PageSourceSearch

https://cellardirect.co.za/catalog/view/javascript/gkdAnalyticsGa.js?v=3.0.43

js cellardirect.co.za collected 2026-10-01 03:36:06 UTC 1,231 bytes, 40 lines download raw bytes

1function gkdEctTrack(action, pid, desc) {
2  var async = action == 'remove' ? false : true;
3	$.ajax({
4		url: 'index.php?route=geekodev/analytics/getTrackData',
5		type: 'post', dataType: 'json', cache: false, async: async,
6		data: {pid: pid, action: action},
7		success: function(res) {
8      if (typeof res[0] !== 'undefined') {
9        ga('ec:addProduct', res[0]);
10        ga('ec:setAction', action);
11        ga('send', 'event', $(document).find('title').text(), desc, res[0].name);
12      }
13		}
14	});
15}
16
17  function gkdEctTrackCheckout(step, desc) {
18    if (typeof jQuery != 'undefined') {
19      $.ajax({
20        url: 'index.php?route=geekodev/analytics/getTrackData',
21        type: 'post', dataType: 'json', cache: false,
22        data: {cart:1},
23        success: function(res) {
24          for(var i=0; i<res.length; i++) {
25            if (typeof res[i] !== 'undefined') {
26              ga('ec:addProduct', res[i]);
27            }
28          }
29          ga('ec:setAction', 'checkout', {'step':step, 'option':desc});
30          ga('send', 'pageview');
31        }
32      });
33    }
34  }
35
36if (typeof jQuery != 'undefined') {
37  $(document).delegate('#button-confirm', 'click', function(){
38    gkdEctTrackCheckout(3, 'Checkout confirm'); 
39  });
40}

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.