I am using onclick="parent.location='#'" to make a table into a link, but will Google Analytics see this as a link or will it cause mayhem in the reports?
Tell me more
×
Webmasters Stack Exchange is a question and answer site for
pro webmasters. It's 100% free, no registration required.
migrated from stackoverflow.com Nov 7 '11 at 10:20
|
If the link is internal to your site, yes Google will track it, because the target page should contain the tracking script as well. If the link is external, then no. You need to call:
then direct the user to the new page. |
|||
|
|
|
From the server's perspective there is no difference between an actual link being clicked and a request sent by JavaScript. Both are HTTP requests. I'd assume that Google Analytics counts them. |
|||
|
|