关闭

piwk 一页多服务统计

标签: piwikphp
347人阅读 评论(0) 收藏 举报
<html>
<head>
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//localhost/piwikpro/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 1]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="//localhost/piwikpro/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>


<!-- Piwik -->
<script type='text/javascript' src='http://localhost/jsweb/jsweb/_ums.js'></script>
<script type="text/javascript">
  var Ums;
  window.piwikAsyncInit = function () {
        try {
            Ums = Piwik.getTracker("http://localhost/jsweb/jsweb/ums.php", 6);
            Ums.trackPageView();
            Ums.enableLinkTracking(true);
        } 
        catch( err ) {}
    };

</script>
<noscript><p><img src="//localhost/jsweb/jsweb/ums.php?idsite=6" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->

</head>

<body>

<a href = "pp.html">pp.html</a>

<br />
<input type="button" onclick="javascript:Ums.trackEvent('t_na_Documentary', 't_na_Rating','t_na_tt',10);" value="event_ums"></input>
<br />

<br />
<input type="button" onclick="javascript:_paq.push(['trackEvent', 't_na_Documentary']);" value="event_paq"></input>
<br />

</body>
</html>


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:21369次
    • 积分:676
    • 等级:
    • 排名:千里之外
    • 原创:46篇
    • 转载:18篇
    • 译文:0篇
    • 评论:2条
    文章分类
    最新评论