Skip to content

Commit 7c661e1

Browse files
[FIX] facebook_pixel_tracking: purchase tracking
1 parent 5707079 commit 7c661e1

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

facebook_pixel_tracking/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
'name': 'Facebook Pixel Tracking',
2222
'category': 'website',
23-
'version': "16.0.1.0.0",
23+
'version': "16.0.1.1.0",
2424
'author': 'ADHOC SA',
2525
'website': 'www.adhoc.com.ar',
2626
'license': 'AGPL-3',

facebook_pixel_tracking/static/src/js/website_sale_tracking.js

+20-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,26 @@ odoo.define("facebook_pixel_tracking.tracking", function (require) {
7575
'event':'purchase',
7676
'ecommerce':info
7777
}
78-
this._pushInfo('OnPurchaseConfirm', dict);
78+
const dict2 = {
79+
value: 115.00,
80+
currency: 'USD',
81+
contents: [
82+
{
83+
id: '301',
84+
quantity: 1
85+
},
86+
{
87+
id: '401',
88+
quantity: 2
89+
}],
90+
content_type: 'producto prueba'
91+
}
92+
93+
// this._pushInfo('OnPurchaseConfirm', dict);
94+
fbq('track','Purchase', dict);
95+
fbq('track','OnPurchaseConfirm', dict);
96+
fbq('track','Purchase', dict2);
97+
fbq('track','OnPurchaseConfirm', dict2);
7998
this._super(...arguments);
8099
},
81100
})

0 commit comments

Comments
 (0)