Streaming live at 10am (PST)

Onclik in Webflow

Guys I need to put an OnClick conversion event on my site in a whatsapp number link, but webflow won’t let me use it. Onclick says it’s a reserved word, as it’s a different company that tracks conversions they just gave me the code. can you help me
Code:
<a onclick="return gtag_report_conversion('http://example.com/your-link');" href="http://example.com/your-link">Whatsapp</a>

A handful of custom fields properties are reserved for Webflow.

You can work around this by using an embed code and put the code inside of it. If you need to style the link, create a link in webflow, give it a class like .myIGlink, style it, then delete the link, then add the class to your custom code like this:

<a class="myIGlink" onclick="return gtag_report_conversion('http://example.com/your-link');" href="http://example.com/your-link">Whatsapp</a>

1 Like