Google Analytics Button Tracking -
in google analytics have set goal button pressed on sign contact form. collect email addresses mailing list. problem not work. have followed 3 guides on offering different code alternate approaches have not got work.
in ga goal setup follow...
goal setup: custom name: contact type: event category equals contact action equals signup
ga tracking page , analytics users can viewed can see working. using cloudflare , ga added on fly pages served through cloud.
the code button below.
<button type="submit" onclick=”_gaq.push([‘_trackevent’, ‘contact’, ’signup’])” class="btn btn-success">sign up</button>
any on appreciated.
if exact code using button, @ least need change smart quotes (ie. angled quotes) straight quotes, should this:
<button type="submit" onclick="_gaq.push(['_trackevent', 'contact', 'signup'])" class="btn btn-success">sign up</button>
i believe there issues when smart quotes used.
Comments
Post a Comment