I am trying to add Google Analytics code to my form, I have this code – is it correct to place this in custom CSS/javascript area? All the info I find is for v1 and I have v2
<script> function gtag_report_conversion(url) { var callback = function () { if (typeof(url) != ‘undefined’) { window.location = url; } }; gtag(‘event’, ‘conversion’, { ‘send_to’: ‘AW-932811566/rq5qCILOl5UBEK6m5rwD’, ‘event_callback’: callback }); return false; } </script>
Forgot to mention I just need to add this to the send button, is this OK? And is this code complete, do I need to add any other code to the website or will adding this code to my form work OK?
tyvm 🙂
This reply was modified 5 years, 1 month ago by whisper.