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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -