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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -