网站制作学习网JS脚本→正文:piwik 一页多服务统计
字体:

piwik 一页多服务统计

JS脚本 2016/5/19 15:26:01  点击:不统计

%77w%77%2E%66%6F%72%61%73%70%2E%63%6E

来源于:http://m.blog.csdn.net/article/details?id=46818801

<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>


http://www.forasp.cn/

·上一篇:script defer和async >>    ·下一篇:网站制作学习网
推荐文章
最新文章