Paste it in between the <head></head> tags of the page(s) you'd like to track, right after the Google tag.
Call gtag_report_conversion when someone clicks on the chosen link or button.
<!-- Event snippet for Submit Form conversion page In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. --> <script> function gtag_report_conversion(url) { var callback = function () { if (typeof(url) != 'undefined') { window.location = url; } }; gtag('event', 'conversion', { 'send_to': 'AW-***', 'event_callback': callback }); return false; } </script>
I was using the click even code snippet above when i should of used the page load code snippet and now it working fine
Add a reply
Sign up and join the conversation on Discord
","upvoteCount":0,"dateCreated":"2025-01-09T09:17:34.665Z","datePublished":"2025-01-09T09:17:34.665Z","dateModified":"2025-01-09T09:20:50.802Z","url":"https://help.webstudio.is/how-to-add-google-ads-tag-on-button-click-for-conversion-tracking-Py0T3yqwnBqh#815ef71b-3c56-4c41-b8f0-dc83b109768f","author":{"@type":"Person","url":"https://help.webstudio.is/members/17cee888-fe3f-4838-b5aa-fbcb50e92ad3","name":"Emmanuel","identifier":"17cee888-fe3f-4838-b5aa-fbcb50e92ad3","image":"https://cdn.discordapp.com/embed/avatars/0.png"}},{"@type":"Answer","text":"Are you saying just add this snippet in an hidden html embed on success ?","upvoteCount":0,"dateCreated":"2025-01-09T09:18:00.538Z","datePublished":"2025-01-09T09:18:00.538Z","dateModified":"2025-01-09T09:18:00.538Z","url":"https://help.webstudio.is/how-to-add-google-ads-tag-on-button-click-for-conversion-tracking-Py0T3yqwnBqh#2c098533-d79b-434e-aa3c-7ad27c0dc055","author":{"@type":"Person","url":"https://help.webstudio.is/members/17cee888-fe3f-4838-b5aa-fbcb50e92ad3","name":"Emmanuel","identifier":"17cee888-fe3f-4838-b5aa-fbcb50e92ad3","image":"https://cdn.discordapp.com/embed/avatars/0.png"}},{"@type":"Answer","text":"Yes","upvoteCount":0,"dateCreated":"2025-01-09T13:32:05.394Z","datePublished":"2025-01-09T13:32:05.394Z","dateModified":"2025-01-09T13:32:05.394Z","url":"https://help.webstudio.is/how-to-add-google-ads-tag-on-button-click-for-conversion-tracking-Py0T3yqwnBqh#2451556a-4763-4dfa-8101-ef4e15373d4a","author":{"@type":"Person","url":"https://help.webstudio.is/members/a3a85f00-1132-4262-8176-1ff92ab9d883","name":"John Siciliano","identifier":"a3a85f00-1132-4262-8176-1ff92ab9d883","image":"https://cdn.discordapp.com/avatars/1141467296532009071/8c83067a661d2916bfb8be5a37677463.webp?size=256"}},{"@type":"Answer","text":"Thanks John, will try this out","upvoteCount":0,"dateCreated":"2025-01-09T18:56:59.123Z","datePublished":"2025-01-09T18:56:59.123Z","dateModified":"2025-01-09T18:56:59.123Z","url":"https://help.webstudio.is/how-to-add-google-ads-tag-on-button-click-for-conversion-tracking-Py0T3yqwnBqh#c23f53f1-9b49-46d8-8d37-1ae04bc02694","author":{"@type":"Person","url":"https://help.webstudio.is/members/17cee888-fe3f-4838-b5aa-fbcb50e92ad3","name":"Emmanuel","identifier":"17cee888-fe3f-4838-b5aa-fbcb50e92ad3","image":"https://cdn.discordapp.com/embed/avatars/0.png"}},{"@type":"Answer","text":"This didnt work","upvoteCount":0,"dateCreated":"2025-01-09T19:10:24.197Z","datePublished":"2025-01-09T19:10:24.197Z","dateModified":"2025-01-09T19:10:24.197Z","url":"https://help.webstudio.is/how-to-add-google-ads-tag-on-button-click-for-conversion-tracking-Py0T3yqwnBqh#20b4109c-655a-441c-ab77-d89f8424a19a","author":{"@type":"Person","url":"https://help.webstudio.is/members/17cee888-fe3f-4838-b5aa-fbcb50e92ad3","name":"Emmanuel","identifier":"17cee888-fe3f-4838-b5aa-fbcb50e92ad3","image":"https://cdn.discordapp.com/embed/avatars/0.png"}},{"@type":"Answer","text":"Webhook forms don't submit in the builder, so did you try it on the live site?","upvoteCount":0,"dateCreated":"2025-01-09T19:20:45.477Z","datePublished":"2025-01-09T19:20:45.477Z","dateModified":"2025-01-09T19:20:45.477Z","url":"https://help.webstudio.is/how-to-add-google-ads-tag-on-button-click-for-conversion-tracking-Py0T3yqwnBqh#4854a1c6-27c8-4951-a5e8-5e33c46e1c8f","author":{"@type":"Person","url":"https://help.webstudio.is/members/a3a85f00-1132-4262-8176-1ff92ab9d883","name":"John Siciliano","identifier":"a3a85f00-1132-4262-8176-1ff92ab9d883","image":"https://cdn.discordapp.com/avatars/1141467296532009071/8c83067a661d2916bfb8be5a37677463.webp?size=256"}},{"@type":"Answer","text":"Yes its working now thank you for the help bro","upvoteCount":0,"dateCreated":"2025-01-09T19:21:13.055Z","datePublished":"2025-01-09T19:21:13.055Z","dateModified":"2025-01-09T19:21:13.055Z","url":"https://help.webstudio.is/how-to-add-google-ads-tag-on-button-click-for-conversion-tracking-Py0T3yqwnBqh#045d89f1-7cf9-4f3e-9602-cdf01e8ca551","author":{"@type":"Person","url":"https://help.webstudio.is/members/17cee888-fe3f-4838-b5aa-fbcb50e92ad3","name":"Emmanuel","identifier":"17cee888-fe3f-4838-b5aa-fbcb50e92ad3","image":"https://cdn.discordapp.com/embed/avatars/0.png"}},{"@type":"Answer","text":"I was using the click even code snippet above when i should of used the page load code snippet and now it working fine","upvoteCount":0,"dateCreated":"2025-01-09T19:22:33.144Z","datePublished":"2025-01-09T19:22:33.144Z","dateModified":"2025-01-09T19:22:33.144Z","url":"https://help.webstudio.is/how-to-add-google-ads-tag-on-button-click-for-conversion-tracking-Py0T3yqwnBqh#6d80aa07-0819-45eb-8e31-f9e305033acf","author":{"@type":"Person","url":"https://help.webstudio.is/members/17cee888-fe3f-4838-b5aa-fbcb50e92ad3","name":"Emmanuel","identifier":"17cee888-fe3f-4838-b5aa-fbcb50e92ad3","image":"https://cdn.discordapp.com/embed/avatars/0.png"}}]}}