Usually you won’t get a lot of traffic from Images Search – close to nothing in fact – but for certain web sites with a high volume of organic traffic, around 85%, and good quantity of search engine optimized images it can be close to 13% of the total visits.

This added traffic sure will help you get some extra conversions and who doesn’t want that? Optimizing images should be a tactic in your organic search strategy.

Optimizing images is not that difficult, but it is a task you have to do every time you upload a picture. And unfortunately there is no easy way to know the yield of this work.

Web analytics tools are not going to tell you (at least not right out the box) the quantity of Image Search traffic, the keywords user searched at Google Images, the exact image that is appearing on the search engine results pages, nor the exact page in your site where the image is allocated.

PHP script to the rescue

It would be fantastic to have all these details to help your image optimization work and here is where I come in, with a piece of PHP code.

This script is doing three basic tasks:

  • Getting the referrer
  • Guess which of the major search engines is, Google, Yahoo or Bing
  • Analyze the query string and extract as many relevant details as possible

“;

                            echo “Image url: $params[imgurl]
“;

                            echo “Page of image: $params[imgrefurl]
“;

                            $prev_values = array();

                            parse_str($params[prev],$prev_values);

                            echo “Keywords: “.$prev_values[“/images?q”].”
“;

                            break;

                  case “/images/view”:

                            // Yahoo Images

                            echo “Search Engine: $url[host]
“;

                            echo “Image url: http://$params[imgurl]
“;

                            echo “Page of image: $params[rurl]
“;

                            echo “Keywords: $params[p]
“;

                            break;

                  case “/images/search”:

                            // Bing Images

                            echo “Search Engine: $url[host]
“;

                            echo “Keywords: $params[q]
“;

                            break;

                  default:

                     echo “Non major Search Engine”;

              }

?>

What kind of data can be collected

Google Images is the one who is going to send most of this traffic, Yahoo Images send very little or nothing and the day I see Bing Images sending any visit is yet to come, but who knows?

Both Google and Yahoo are passing: keywords, Image URL and URL of the page in your site, as well as the search engine with the specific country code, so we can grab them all.

Bing is only going to tell the keywords the user searched, not surprisingly.

What else?

Feel free to modify the way you want the script to insert it in your site and collect all this data.

If your site is not using PHP as a server side script language you still can take the idea and replicate it in your favorite language.

My recommendation is to have a table in the database gathering the details with a time stamp, giving you some basic stats of when the visits from images are coming and the number of them.

More than just the insights you can get, this represents the possibility to delve into behavioral targeting according to what brought the visit to the site, just add your imagination.

Your request has been submitted and a rep will reach out to you shortly.

Message Sent

Thank you for your interest.

Thank you for registering.

You should receive a confirmation email from GoToWebinar with your unique webinar login information. If you do not receive this email or have trouble logging in to the event, please email asmaa.mourad@cardinalpath.com.

Thank you for subscribing!

You're now looped into the world's largest GMP resource hub!

Thank you for your submission.

Thank you for your submission.

Thank you for your submission.

Thank you for your submission.

Thank you for your submission.

Message Sent

Thank you for registering.

Thank you for your submission.

Message Sent

Thank you for registering.

Thank you for registering.​

Paid media spend by Government websites increased a whopping 139% YoY in 2020.

2020 Online Behavior Live Dashboard

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

2020 Online Behavior Live Dashboard

Thank you for your submission.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for your submission.

Message Sent

Thank you for registering.

Thank you for registering.

Cardinal Path is continuing with its series of free training. Next we are conducting training on Google Data Studio. Check it out here.
Cardinal Path hosted a live session to connect with you and answer all your questions on Google Analytics.
Get all the expertise and none of the consultancy fees in this not-to-be-missed, rapid-fire virtual event.

Thank you for submitting the form.

Thank you for submitting the form.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you.

Click here to download access the tool.

Message Sent

Thank you for registering.

Message Sent

Thank you.

Message Sent

Thank you.

Message Sent

Thank you

Message Sent

Thank you

Message Sent

Thank you.

Message Sent

Thank you

Message Sent

Thank you.

Message Sent

Success!
Your message was received.

Thank you.

Message Sent

Success! Thank you
for reaching out.