Button Addon and Tracking Code - Forum | JoomShaper
Staff replied SP Page Builder

Button Addon and Tracking Code

Asked by kriss 4 years ago Last activity 4 years ago

Hi

I had the same question with the image-addon. How can i add something like

onclick="_paq.push(['trackEvent', 'Contact', 'Email Link Click', '[email protected]']);

to a link within the Button Addon. I need it to track Events.

Thank you
Regards
Christoph

1 reply

Paul Frankowski Senior Staff

Hi Kriss,

by default you cannot, you have to create your own button inside RAW HTML addon.

use classes from button addon and put your action code inside.

<a href="#" class="btn btn-primary btn-md mr-4">Button</a>

Log in to reply.