谷歌分析跟踪目标转换 - 重新指示

时间:2013-08-10 20:00:53

标签: javascript google-analytics data-conversion

我正在使用谷歌分析来跟踪目标转换,使用桥接页面然后将用户重定向到联盟网站。

我有一个关于超时之前超时的问题。您可以将页面设置为重定向的最快时间是什么,以便Google可以收集分析目标转化数据?

下面是我在桥页面重定向之前使用的代码,它设置为:1500 - 1秒半延迟。

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

任何反馈都将不胜感激。

非常感谢 保罗

1 个答案:

答案 0 :(得分:0)

您可以使用analytics events确保在重定向之前记录重定向。

//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
});