From b25f49f32a8c4886eff2eb000712306748b71379 Mon Sep 17 00:00:00 2001 From: Hoang Vi Date: Tue, 16 Jun 2026 09:07:41 +0700 Subject: [PATCH] feat: add google ads tag --- assets/js/modals.js | 4 ++++ index.html | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/assets/js/modals.js b/assets/js/modals.js index c0f8711..0f577f8 100644 --- a/assets/js/modals.js +++ b/assets/js/modals.js @@ -136,6 +136,10 @@ const data = await res.json(); if (res.ok && data.ok) { + // Google Ads conversion — fires only on a successful submit + if (typeof gtag_report_conversion === "function") { + gtag_report_conversion(); + } onSuccess(restore); } else { let msg = data.error || "Something went wrong. Please try again."; diff --git a/index.html b/index.html index e21110e..b865af9 100644 --- a/index.html +++ b/index.html @@ -118,6 +118,20 @@ } gtag('js', new Date()) gtag('config', 'G-YG35M09CR8') + gtag('config', 'AW-18202371431'); + + + + -- 2.39.2