2011-01-05 8 views
2

그래서 나는 을 실행하고 최근에 Google 이미지 검색 트래픽을 많이 보았습니다. http://screensnapr.com/v/Rm1KdJ.png - 문제는 사용자가 내 사이트로 이동하기 위해 어떤 검색을하는지 찾을 방법이 없습니다. 여러 방문 페이지가 있으므로 많은 것들이 있어야합니다. http://www.google.com/support/forum/p/Google+Analytics/thread?tid=4f166221a4857871&hl=en에서 유용하다고 생각되는 항목을 발견했지만 Google 애널리틱스의 다른 버전을 사용하고있어 저에게 적합하지 않습니다. 내 자바 스크립트 코드는 다음과 같습니다Google 웹 로그 분석에서 Google 이미지 검색 트래픽을 더 효과적으로 추적하려면 어떻게해야합니까? [구체적으로 키워드]

<script type="text/javascript"> 
/* <![CDATA[ */ 
    var _gaq = _gaq || []; 
    _gaq.push(['_setAccount', 'UA-19201482-3']); 
    _gaq.push(['_trackPageview']); 
    (function() { 
     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
    })(); 
/* ]]> */ 
</script> 

답변

1

그것을 시험하지 않았다 (I 구글 이미지에에 링크 된 모든 페이지 오프 손을 가지고 있지 않기 때문에), 그러나 이것은 당신이 링크 된 해당 스크립트가 채택 될하는 방법입니다 귀하의 발췌 문장.

<script type="text/javascript"> 
/* <![CDATA[ */ 
var _gaq = _gaq || []; 
_gaq.push(['_setAccount', 'UA-19201482-3']); 

var ref = document.referrer; 
if (ref.search(/images.google/) != -1 && ref.search(/prev/) != -1) { 
    var regex = new RegExp("images.google.([^\/]+).*&prev=([^&]+)"); 
    var match = regex.exec(ref); 
    _gaq.push(['_clearOrganic']); 
    _gaq.push(['_addOrganic',"images.google."+ match[1],"q"]); 
    _gaq.push(['_setReferrerOverride', "http://images.google." + match[1] + unescape(match[2]) ]); 
} 
_gaq.push(['_trackPageview']); 
(function() { 
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
})(); 
/* ]]> */ 
</script> 
관련 문제