View Single Post
Old 2009-02-18, 04:14 AM   #1
Daniel_webcams
They have the Internet on computers, now?
 
Daniel_webcams's Avatar
 
Join Date: Dec 2008
Posts: 142
How to Adapt Google Analytics to show Image searches in your stats.

Two weeks ago i wrote about Search Engine Optimization for Image Search now i will write about how to use Google Analytics in order to get the stats for your image traffic generated after the improvements made on your site structure following the indications from that thread.
If you already have a Google Analytics account, then you have to follow the next steps:

In the first step you have to rewrite the normal javascript function and to add an extra code, written below instead of using the usual urchin code, you must also change the relative link from my example with the absolute one related your site.
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script src="http://www.yoursiteaddress.com/custom_se.js" type="text/javascript"></script>
<script src="http://www.yoursiteaddress.com/track-imagesearch.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-XXXXXX-X";
urchinTracker();
</script>

In the second step you must download the javascript files from here and upload them in the specified directory from the source link (you can find the link in the first step).

And that is all, Google Analytics it will start to collect the necessary data in order to build the image traffic stats for your site.

Hope to be helpful....
__________________
Daniel,
Daniel.r[@t]mindgeek[dot]com
cash4members.com
Daniel_webcams is offline   Reply With Quote