Hi,
There was a question about how to add the GA tracking to the button click in SO contact form, and the answer was to add the conversion tracking directly to the success message, does this mean something like this:
<p onClick="ga('send', 'event', 'Downloads', 'Click', 'Ebook downloaded', '0');>Thanks for contacting us. We'll get back to you shortly.
Or there is another way to track onClick event?
Thanks for your support
Best Regards
Eslam
Hi Eslam,
No. That would still require the user to click the paragraph (which they’re unlikely to ever do). You should trigger the code directly instead. Something like this:
Please note that you’ll need to only use the text tab as the visual tab will break the above HTML/JavaScript.
Hi Alex,
Thanks for your reply, Just a clarification you now mean that the button code will be something like this?
Thanks for your support :)
Hi Eslam,
No. Please open the SiteOrigin Contact Form and open the Settings settings group and add the above JavaScript to the Success Message editor – be sure to add it to the Text mode.
Hi Alex,
Thanks a lot for your reply, understood now :)
Keep up the great work SO people :)