Bu referans, web sitenizi izlemek için hem Google Analytics'i hem de Alias yazılımını kullanırken sunucu ayarlarınızı yapılandırmak için kullandığınız yöntemleri açıklar.
GATC Alias Server Yöntemleri
_getLocalGifPath()
_getServiceMode()
_setLocalGifPath(newLocalGifPath)
_setLocalRemoteServerMode()
_setLocalServerMode()
_setRemoteServerMode()
Yöntem Ayrıntıları
_getLocalGifPath()
_getLocalGifPath()
Bcc GIF dosyasının yerel yolunu alır. Daha fazla bilgi için _setLocalGifPath()
sayfasına bakın.
Eşzamansız Snippet (önerilir)
_gaq.push(function() { var pageTracker = _gat._getTrackerByName(); // Gets the default tracker. var localGifPath = pageTracker._getLocalGifPath(); });
returns
String
Yerel sunucudaki GIF dosyasının yolu.
_getServiceMode()
_getServiceMode()
Sunucu işlem modunu döndürür. Olası dönüş değerleri, yerel mod için 0 (_setLocalGifPath()
tarafından ayarlanan yerel sunucuya veri gönderme), uzak mod için (1) verileri Google Analytics arka uç sunucusuna gönderin) ve hem yerel hem de uzak mod için 2 olarak döndürülür.
Eşzamansız Snippet (önerilir)
_gaq.push(function() { var pageTracker = _gat._getTrackerByName(); // Gets the default tracker. var serviceMode = pageTracker._getServiceMode(); });
returns
Number
Sunucu işlem modu.
_setLocalGifPath()
_setLocalGifPath(newLocalGifPath)
Bcc GIF dosyasının yerel yolunu ayarlar. Yerel sunucularınızda Alias izleme yazılımı çalıştırıyorsanız bu yöntemi kullanın. Burada belirttiğiniz yol, yerel sunucunun kendisine giden yolu belirlemek için _setLocalServerMode()
ve _setLocalRemoteServerMode()
yöntemleri tarafından kullanılır.
Eşzamansız Snippet (önerilir)
_gaq.push(['_setLocalGifPath', 'http://mysite.com']);
Parametreler
String newLocalGifPath
Yerel sunucuda GIF dosyasının yolu.
_setLocalRemoteServerMode()
_setLocalRemoteServerMode()
İzleme verilerinizi hem yerel bir sunucuya hem de Google Analytics arka uç sunucularına göndermek için bu yöntemi kullanın. Yerel sunucularınızda basit izleme yazılımı çalıştırıyorsanız ve verileri hem yerel olarak hem de Google Analytics sunucuları aracılığıyla izlemek istiyorsanız bu yöntemi kullanırsınız. Bu senaryoda, yerel sunucunun yolu _setLocalGifPath()
tarafından belirlenir.
Eşzamansız Snippet (önerilir)
_gaq.push(['_setLocalRemoteServerMode']);
_setLocalServerMode()
_setLocalServerMode()
İzleme verilerinizi yalnızca yerel bir sunucuya göndermek için bu yöntemi çağırın. Yerel sunucularınızda basit izleme yazılımı çalıştırıyorsanız ve tüm izleme verilerinin sunucularınıza gönderilmesini istiyorsanız bu yöntemi kullanırsınız. Bu senaryoda, yerel sunucunun yolu _setLocalGifPath()
tarafından belirlenir.
Eşzamansız Snippet (önerilir)
_gaq.push(['_setLocalServerMode']);
_setRemoteServerMode()
_setRemoteServerMode()
Varsayılan Google Analytics yüklemeleri, izleme verilerini Google Analytics sunucusuna gönderir. Web siteniz için Alias yazılımını yüklediyseniz ve belirli izleme verilerini yalnızca Google Analytics sunucusuna göndermek istiyorsanız bu yöntemi kullanın.
Eşzamansız Snippet (önerilir)
_gaq.push(['_setRemoteServerMode']);