Button onclick parameter
-
Hello,
I’m using WP 3.81 and su 4.63. I’m trying to add Google Analytics event tracking to links in my buttons by using the onclick parameter. But when the button generates it shows the user the );”] at the end of the event tracking code.
For example, the short code:
[su_button url=”https://www.facebook.com/ParksideChurchCamas” target=”blank” icon=”icon: facebook” onclick=”_gaq.push([‘_trackEvent’, ‘Social’, ‘Facebook’, ‘ProfileView’,, false]);”][/su_button]produces a button containing “f );”]”
Screenshot here:
https://parksidechurchcamas.org/wp-content/uploads/2014/03/Capture.pngThe button functions correctly, but does not display correctly.
Any suggestions?
Thanks
- The topic ‘Button onclick parameter’ is closed to new replies.