@@ -32,6 +32,7 @@ odoo.define("facebook_pixel_tracking.tracking", function (require) {
32
32
'content_type' : 'product' ,
33
33
'value' : product_price ,
34
34
'total' : amount ,
35
+ 'currency' : 'ARS' ,
35
36
}
36
37
this . _pushInfo ( 'AddToCart' , dict ) ;
37
38
} ,
@@ -46,6 +47,7 @@ odoo.define("facebook_pixel_tracking.tracking", function (require) {
46
47
'content_ids' : [ product_sku || product_id ] ,
47
48
'content_type' : 'product' ,
48
49
'value' : product_price ,
50
+ 'currency' : 'ARS' ,
49
51
}
50
52
this . _pushInfo ( 'AddToCart' , dict ) ;
51
53
} ,
@@ -75,7 +77,26 @@ odoo.define("facebook_pixel_tracking.tracking", function (require) {
75
77
'event' :'purchase' ,
76
78
'ecommerce' :info
77
79
}
78
- this . _pushInfo ( 'OnPurchaseConfirm' , dict ) ;
80
+ const dict2 = {
81
+ value : 115.00 ,
82
+ currency : 'USD' ,
83
+ contents : [
84
+ {
85
+ id : '301' ,
86
+ quantity : 1
87
+ } ,
88
+ {
89
+ id : '401' ,
90
+ quantity : 2
91
+ } ] ,
92
+ content_type : 'producto prueba'
93
+ }
94
+
95
+ // this._pushInfo('OnPurchaseConfirm', dict);
96
+ fbq ( 'track' , 'Purchase' , dict ) ;
97
+ fbq ( 'track' , 'OnPurchaseConfirm' , dict ) ;
98
+ fbq ( 'track' , 'Purchase' , dict2 ) ;
99
+ fbq ( 'track' , 'OnPurchaseConfirm' , dict2 ) ;
79
100
this . _super ( ...arguments ) ;
80
101
} ,
81
102
} )
0 commit comments