I have a link on my site. That links goes to another URL on my site. The code on the server sees that resource being requested and redirects the browser to another website. Will Google Analytics be able to know that the user requested the URL from my server and was redirected?Specifically, I set up a /buy link on my watchmecode.net site to try and track who is clicking the Buy & Download button. This link/button hits my server, and my server immediately does a redirect to the PayPal processing so the user can buy the screencast.Is Google Analytics going to know that the user hit the /buy URL on my site, and track that for me? If not, what can I do to make that happen?
Will Google Analytics track URLs that just redirect?
google analytics;redirects
Short answer: no.Google Analytics will only track a page view if the page loads and _trackPageview is called. You could call _trackPageview in a Buy click handler, but if you're going to do that I'd just fire an event instead.