From 0288c05e2bf7473f6ae77f021ac2d2ff77f168c9 Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 5 Mar 2025 15:03:41 +0300 Subject: [PATCH] correct registration js metrics --- static/js/registration.js | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/static/js/registration.js b/static/js/registration.js index cab22e0..e4937ef 100644 --- a/static/js/registration.js +++ b/static/js/registration.js @@ -36,26 +36,26 @@ function SendRegistrationForm(el, user_id){ window.sessionStorage.removeItem('mailingSubscribeRequired') window.sessionStorage.removeItem('email') - // fbq('track', 'Contact'); + fbq('track', 'Contact'); - ttq.identify({ - "email": "", // string. The email of the customer if available. It must be hashed with SHA-256 on the client side. - "phone_number": "", // string. The phone number of the customer if available. It must be hashed with SHA-256 on the client side. - "external_id": "" // string. Any unique identifier, such as loyalty membership IDs, user IDs, and external cookie IDs.It must be hashed with SHA-256 on the client side. - }); + // ttq.identify({ + // "email": "", // string. The email of the customer if available. It must be hashed with SHA-256 on the client side. + // "phone_number": "", // string. The phone number of the customer if available. It must be hashed with SHA-256 on the client side. + // "external_id": "" // string. Any unique identifier, such as loyalty membership IDs, user IDs, and external cookie IDs.It must be hashed with SHA-256 on the client side. + // }); - ttq.track('CompleteRegistration', { - "contents": [ - { - "content_id": "", // string. ID of the product. Example: "1077218". - "content_type": "", // string. Either product or product_group. - "content_name": "" // string. The name of the page or product. Example: "shirt". - } - ], - "value": "", // number. Value of the order or items sold. Example: 100. - "currency": "" // string. The 4217 currency code. Example: "USD". - }); + // ttq.track('CompleteRegistration', { + // "contents": [ + // { + // "content_id": "", // string. ID of the product. Example: "1077218". + // "content_type": "", // string. Either product or product_group. + // "content_name": "" // string. The name of the page or product. Example: "shirt". + // } + // ], + // "value": "", // number. Value of the order or items sold. Example: 100. + // "currency": "" // string. The 4217 currency code. Example: "USD". + // }); @@ -87,5 +87,3 @@ function SendRegistrationForm(el, user_id){ } }); } - -