开放式网络分析的热图功能非常酷;如果你让它工作。文档不完整,wiki 完全不清楚。论坛什么都没有出现,所以很令人沮丧。谁在 OWA 中实现了热图并可以分享如何做到这一点?
所以这是基本的示例代码:
<script type="text/javascript">
//<![CDATA[
var owa_baseUrl = 'http://stats.viewcom.nl/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setSiteId', 'xxx']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
owa_cmds.push(['trackDomStream']);
(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
//]]>
维基指的是:
http://wiki.openwebanalytics.com/index.php?title=Heatmap
以某种方式在某处添加(不清楚):
//create the object
var heatmap = new owa.heatmap();
heatmap.generate();