javascript - Enhanced Ecommerce Add To Cart Event Tracking Is Not Working -


for track add cart event use below code code not working please me fix out.

------not working-----

ga('require', 'ec');  jquery(document).ready(function($) {     jquery("#addtocart").click(function(e) {             ga('ec:addproduct', {                     'id': 'p12345',                     'name': 'android warhol t-shirt',                     'category': 'apparel',                     'brand': 'google',                     'variant': 'black',                     'price': '29.20',                     'coupon': 'apparelsale',                     'quantity': 1             });              ga('send', 'event', 'event-category', 'add cart', 'event-lable','event-value');      }); }); 


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -