Dumb SEO Questions

(Entry was posted by Gregory Krista on this post in the Dumb SEO Questions community on Facebook, 11/14/2014).

Can someone tell me what is wrong with this line of code?

I have always struggled with creating event tracking codes for Google Analytics. Can someone tell me what is wrong with this line of code? I removed the URL and the titles from this code

Thanks!

http://website.com" onclick="_gaq.push(`_trackEvent`, `local`, `clickevent`, `clickedlink` );">?
This question begins at 00:21:56 into the clip. Did this video clip play correctly? Watch this question on YouTube commencing at 00:21:56
Video would not load
I see YouTube error message
I see static
Video clip did not start at this question

YOUR ANSWERS

Selected answers from the Dumb SEO Questions Facebook & G+ community.

  • Gregory Kristan: I have always struggled with creating event tracking codes for Google Analytics. Can someone tell me what is wrong with this line of code? I removed the URL and the titles from this code

    Thanks!

    <a title="title has been removed" href="http://website.com" onclick="_gaq.push(['_trackEvent','local', 'clickevent', 'clickedlink' );">
  • Martin Reed: Should work if you're using classic Analytics (ga.js). Open up the console (in Chrome/FF, right click on the page and select Inspect Element) and see if there are any errors when you click on the link.
  • Gregory Kristan: +Martin Reed ;awesome, I never knew you could do this! I will check that out later tonight when I get home! :)

View original question in the Dumb SEO Questions community on Facebook, 11/14/2014).