Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Using A Regular A Href Code But Using On Click Javascript Code


  • Please log in to reply
2 replies to this topic

#1 goldjake

goldjake

    HR 4

  • Active Members
  • PipPipPipPip
  • 131 posts

Posted 24 June 2009 - 10:40 AM

google told me to write a code like this to track links when i have many ways to go to a single page and i want to track the path without hurting seo. Google analytics told me to write this

a href="bob.aspx" title="bob" onClick="java script: pageTracker._trackPageview('bobMenu');">bob</a>

the tracker goes to bobmenu and instantly goes to the bob.aspx page but i get to see the path of the user for selling purposes. This is what i came up with- however i have no idea if it is bad for seo reasons- any ideas

#2 1dmf

1dmf

    Keep Asking, Keep Questioning, Keep Learning

  • Active Members
  • PipPipPipPipPipPipPip
  • 2,167 posts
  • Location:Worthing - England

Posted 24 June 2009 - 10:45 AM

I'm a bit lost what you are asking, but as far as the SE's are concerned they don't know the onclick exists, it's JS and they don't triger JS.

#3 Randy

Randy

    Convert Me!

  • Moderator
  • 17,540 posts

Posted 24 June 2009 - 10:47 PM

You're fine with that one.

Not only don't the spiders trigger onclicks in a normal sense as mentioned above, but Google and all the rest understand that pageTracker._trackPageview is Google Analytics code and nothing nefarious.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

We are now a read-only forum.
 
No new posts or registrations allowed.