Home>Support>SiteOrigin Button onclick=

SiteOrigin Button onclick=

By joey, 8 years ago. Last reply by joey, 8 years ago.

Hello,

I’m using the SiteOrigin Button and I would like to track clicks.

I paste the tracking info in the Onclick field in the button widget:

ga('send', 'CTA', 'Button', 'Afspraak';)

But the result in the source code is
onclick=”ga('send', 'CTA', 'Button', 'Afspraak';)

So google analytics won’t recognize the event/conversion.

How can I solve the issue of the quotation mark automatically converting to ‘&#039’ code?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 11 months ago joey

    edit: the result is
    onclick=”ga(&# 039;send&# 039;, &# 039;CTA&# 039;, &# 039;Button&# 039;, &# 039;Afspraak&# 039;;)”
    without the spaces between # and 039

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More