If you'd like to use Google Adwords tracking on Strikingly's contact form, there are two possible methods:
1. On-page tracking
With this method, when your user submits the contact form, the conversion code gets executed.
Step 1)
Copy the code below to the footer code of your site.
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-YOUR_CONVERSION_ID"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-YOUR_CONVERSION_ID'); </script> <script> function gtag_report_conversion(url) { var callback = function () { if (typeof(url) != 'undefined') { window.location = url; } }; gtag('event', 'conversion', { 'send_to': 'AW-YOUR_CONVERSION_ID/YOUR_CONVERSION_LABEL', 'event_callback': callback }); return false; } </script> <script> var conversionFunc = function() { window.edit_page.Event.subscribe('Site.contactForm.submit', function() { gtag_report_conversion() }); }; _strk.push(['Page.didMount', conversionFunc]); </script>
Step 2)
Create a conversion in Google Adwords panel, but don't copy the code from Google Adwords over. Find and replace YOUR_CONVERSION_ID and YOUR_CONVERSION_LABEL from the above code to the values Google generated:

Step 3)
Save and publish the site.
2. Success redirect page tracking
Use this method to redirect the visitor to a success page with a new URL. The conversion code will be executed upon submitting the form. You'll have two pages:
Use this method to redirect the visitor to a success page with a new URL. The conversion code will be executed upon submitting the form. You'll have two pages:
Page A: The page where the contact form is hosted
Page B: The success page
Paste the code below into the Footer Code of your site (make sure to replace SUCCESS_PAGE_URL):
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-YOUR_CONVERSION_ID"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-YOUR_CONVERSION_ID'); </script> <script> function gtag_report_conversion(url) { var callback = function () { if (typeof(url) != 'undefined') { window.location = url; } }; gtag('event', 'conversion', { 'send_to': 'AW-YOUR_CONVERSION_ID/YOUR_CONVERSION_LABEL', 'event_callback': callback }); return false; } </script> <script> var conversionFunc = function() { window.edit_page.Event.subscribe('Site.contactForm.submit', function() { gtag_report_conversion("https://SUCCESS_PAGE_URL") }); }; _strk.push(['Page.didMount', conversionFunc]); </script>
In case you need assistance, shoot us a line at support@strikingly.com or chat with us.