}; tracking.signup = function() { }; tracking.subscribeNewsletter = function(name) { ga('event','newsletter','subscribe', name); }; tracking.initiatePurchase = function(courseId, price, currency, courseName) { }; tracking.purchase = function(id, courseId, price, currency, courseName) { ga('ecommerce:addTransaction', { 'id': id, 'revenue': price, 'currency': currency }); ga('ecommerce:addItem', { 'id': id, 'name': courseName, 'sku': courseId, 'price': price, 'currency': currency, 'quantity': 1 }); }; tracking.facebookLike = function() { };