img.php gibi bir betik ile çağırılan resimlerde bu mümkün olabilir hocam.
örnek php dosyası:
<?php
$sym = $_GET["resimal"];
if($sym == "" or $sym == "index") {
include 'resim/yok.jpg';
}
if($sym == "resim1") {
include 'resim/1.jpg';
}
if($sym == "resim2") {
include 'resim/2.jpg';
}
?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-213526xx-x']);
_gaq.push(['_setDomainName', '.engintopcuoglu.xxx.xx']);
_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>bu kodu; resim.php diye kaydedersiniz. resim.php diye direk girilince resim/yok.jpg gösterir. resim.php?resimal=resim1 diye yaptığınızda resim/1.jpg 'i gösterir.
Kullanımı da <img src="http://siteadresi.com/resim.php?resimal=resim1"> şeklinde olabilir diye düşünüyorum ?
Buyrun örneği:
http://apps.engintopcuoglu.com.tr/resimal/resimal.html
Bu da php betiğinin ve örnek dosyaların olduğu rar dosyası:
http://apps.engintopcuoglu.com.tr/resimal/resimal.rar
Analytics kodlarını da resim.php dosyasının en altına ekleyebilirsiniz.