0 }

  • Tracking Backbone.js eCommerce Transactions with Google Analytics

    … }); if(giveObj.get("Membership").quantity > 0) { ga('ecommerce:addItem', { 'name': 'Personal Membership', 'price': giveObj.get("Membership").price, 'quantity': 1 }); } ga('ecommerce:send'); The “giveObj” is the object that tracks what the user is buying. Here is how the cart is setup in backbone: var CartModel = Backbone.Model.extend({ defaults: { Give…

    Depth of Knowledgein Google- 30 readers -
Get the top posts daily into your mailbox!