Skip to content

Commit ba7f057

Browse files
author
Chad $yntax
committed
add google ads conversion tracking
1 parent f8cbf43 commit ba7f057

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/BrevoEmailSubscribe/BrevoEmailSubscribe.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ export const BrevoEmailSubscribe = (props: BrevoEmailSubscribeProps) => {
6161

6262
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
6363
posthog.capture('brevo_email_subscribe_submitted');
64+
65+
// Google Search-1 campaign conversion tracking
66+
window.gtag('event', 'conversion', {
67+
send_to: 'AW-16839610676/zqbPCJr38pUaELSi4N0-',
68+
value: 1.0,
69+
currency: 'USD',
70+
});
6471
};
6572

6673
return (

0 commit comments

Comments
 (0)