I have Statcounter [SC] and Google Analytics [GA] on some of my sites and can't see a what to check which links out of my site are being clicked on. Is there a way to do this with GA or SC? Thanks.
For GA: You will need to tag the outbound links with additional code to force GA to track it as a pageview, e.g. <a href="http://www.example.com" onClick="javascript: pageTracker._trackPageview('/outgoing/example.com');"> Please see the full article at: How do I manually track clicks on outbound links?
Statcounter can track this. You can view landing URLs, visitor paths and leaving URLs in statcounter.
GA will show these outbound links in your site overlay, only if the site linked to is also using GA. In MS adCenter analytics you can enable autotracking and all outbound links will get tracked automatically. Quite a good feature!
Glad a saw this thread, i was about to start a seperate one. Does anyone know how i can use the method mentioned by squarecat above but within a form and its a form from an affiliate program. Near the top of the form code there is: <form method=POST action="http://www.theaffiliateurlhere/then_some_other_stuff.cgi?and_my_affiliate_id_here" name="form_60"> I want to track when someone has clicked on the form to submit their details. If this is possible, would i be wanting to insert that GA code to track the outbound links at that code above? I cant see anywhere else on the form where it would make sense to place it.
Google the javascript phras "onSubmit=" I believe you can call the "javascript: pageTracker._trackPageview('/outgoing/example.com');" I'm not sure though. I quick google search should help you!
Im more concerned about where within the form code i will insert it. Edit:I really need to take notice of what you said first ive googled and now reading the first result, hope thats maybe what im trying to understand. I first replied without having searched, lol Edit2: I still dont understand, i know the analytics code above can be used, but where exactly to insert it into the form code?
Ok... I think the line in your post: Should be replaced with: So just change the website URL and you should be ok. Everytime your form gets submitted the tacker will track your submittion. Let me know if this worked!
Zhoog, thanks very much, this is what i needed, if it works il post back here and let you guys know, im editing a landng page today and sorting another. If it tracks the clicks for each submission il be very happy.
<form method=POST action="http://www.theaffiliateurlhere/then_some_other_stuff.cgi?and_my_affiliate_id_here" name="form_60" onSubmit="javascriptageTracker._trackPageview('http://www.the-website-the-form-submits-to.com/page.html');"> Can the url that is bolded just be the homepage of the site that im promoting? as i wont know the page that the submitter sees (if any) after submitting the form on my site.
Thanks for the info. Shame you have to add a tag to all links. Don't suppose there is a quick way to do this?
I've heard of something you can add that will do this automatically but I can't for the life of me remember where I saw it... I'll try and do some digging. Think it was some sort of jScript that you need to install, somewhere... I'll need to find it!!
Microsoft Analytics and Woopra are able to track outbound links (and downloads) automatic. Just add one line of javascript. It's an awesome feature. I bet Google will not stay behind for too long. This is actually the first real usefull thing Microsoft has beat Google to in terms of their analytics tool.
Not sure if this is the one I saw originally (and it's not endorsed or tested by me in any way): http://www.jhuskisson.com/code-tidbits/track-outbound-links-for-google-analytics-automatically