Home>Support

OnClick Code for Google Analytics

By MelH, 7 years ago. Last reply by MelH, 7 years ago
Hello, I am trying to put the following code into the onclick-section of a button: ga(‘send’, ‘event’, ‘Button’, ‘Klick’, ‘SADownload’, ‘1’); Unfortunately, this does not work. When I view the source code it looks like this: onclick=”ga(‘send’, ‘event’, ‘Button’, ‘Klick’, ‘SADownload’, ‘1’);” It seems to add a backslash to the single quotation marks. How can…

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More