簡體   English   中英

Google Analytics(分析)跟蹤目標轉化-重新定向

[英]google analytics to track goal conversions - re directs

我正在使用Google Analytics(分析)來跟蹤目標轉化,使用一個橋接頁面,該頁面然后將用戶重定向到聯屬網站。

我有一個關於超時的問題,然后重新定向。 您可以將頁面設置為重定向的最快時間是什么,以便Google可以收集分析目標轉化數據?

以下是我在網橋頁面上重定向之前使用的代碼,其設置為:1500-1個半秒的延遲。

<script type="text/javascript">
    setTimeout(function(){ window.location = "http://www.example.com"; },1500);
</script>

對於任何反饋,我們都表示感謝。

非常感謝保羅

您可以使用分析事件來確保在重定向之前已記錄重定向。

//Fires after page load
addListener(document, 'load', function() {
//Sends an event for page which where the action was redirect and the value is the current page
  ga('send', 'event', 'page', 'redirect', document.location);
//Refferes to new location after recording the action.
  window.location = NEW_LOCATION
});

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM