1(function($){ 2 console.log('This would be tested.'); 3 4 // getting the price from cart page. 5 var currentPage = window.location.href; 6 if (currentPage == 'https://secure.japanesegarden.org/cart/details') { 7 var price = $('.tn-cart-totals__value.tn-cart-totals__value--total').html(); 8 } 9 10 // tickets purchased. 11 if (window.location.href.indexOf("/cart/receipt/") > -1) { 12 13 var orderNumber = $('.tn-order-information-line.tn-order-number').html(); 14 var total = $('.tn-cart-totals__value.tn-cart-totals__value--total').html(); 15 var product = $('.tn-performance-title.tn-cart-line-item-name').html(); 16 17 ga('require', 'ecommerce'); 18 19 ga('ecommerce:addTransaction', { 20 'id': orderNumber, 21 'affiliation': 'Japanese Garden', 22 'revenue': total, 23 }); 24 25 ga('ecommerce:addItem', { 26 'id': orderNumber, 27 'name': product, 28 'price': total, 29 'quantity': '1' 30 }); 31 32 // finally send. 33 ga('ecommerce:send'); 34 } 35})(jQuery); 36
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.