this.handleTaxes = false;
this.minQuantities = {};
this.idBySku = {};
+ this.lastRefClicked = '';
this.initBaseURL();
this.init();
return true;
});
+ $(document).on('click', '#zoomPopupMenu a.button.ext', function () {
+ var ref = $(this).parent().find('[data-cart-ref]').data('cart-ref');
+ $this.fluidbook.stats._ga('event', 'Fluidbook', 'see_website', ref);
+ return true;
+ });
+
+ $(document).on('click', 'a[href$="customer/account/login/"]', function () {
+ $this.fluidbook.stats._ga('event', 'Fluidbook', 'sign_in', $this.lastRefClicked);
+ return true;
+ })
+
this.updateCartData(function () {
});
addToCart: function (ref, quantity) {
var $this = this;
+ this.lastRefClicked = ref;
+ this.fluidbook.stats._ga('event', 'Fluidbook', 'add_to_cart', ref);
if (!this.checkLoginSession()) {
return;
}
this.fluidbook.displayLoader();
- this.fluidbook.stats._ga('event', 'Fluidbook', 'add_to_cart', ref);
+
this.getProductIDBySKU(ref, function (product_id) {
if (product_id === null) {
},\r
\r
_ga: function (a0, a1, a2, a3, a4) {\r
+ console.log('ga', this.ga, a0, a1, a2, a3, a4);\r
var args = Array.prototype.slice.call(arguments);\r
if (this.ga === 'gtag') {\r
var f, o, c, a;\r