• Resolved k-Dushi

    (@kadushi-marketing)


    Hi, this plugin seems exactly what I need. Nevertheless it’s not working when I add onclick code. This is what I have:

    [bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show More” collapse_text=”Show Less” onclick=”_gaq.push([‘_trackEvent’, ‘contactinfo’, ‘click’, ‘page1’])”]TEST[/bg_collapse]

    Am I doing something wrong?

Viewing 1 replies (of 1 total)
  • Plugin Author buntegiraffe

    (@buntegiraffe)

    Hello @kadushi-marketing,

    The error appears due to square brackets you are using to indicate a Javascript array. Please try the new Array for that, so that your code becomes:

    onclick="_gaq.push(new Array('_trackEvent', 'contactinfo', 'click', 'page1'))"

    Please let me know if it worked

Viewing 1 replies (of 1 total)
  • The topic ‘onclick not working’ is closed to new replies.