public static native void PiwikReport(String email)/*-{
window.alert("hello1");
var pkBaseURL ="https://hpsmartplanner.com/piwik/piwik.js";
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.setCustomVariable(1, "User Name",email , "page");
piwikTracker.setCustomVariable(2, "Type", "Channel Partner" , "page");
piwikTracker.setCustomVariable(3, "Event", "Signin" , "page");
piwikTracker.trackPageView();
window.alert("hello");
}-*/;
并在HTML文件中
<!-- Piwik -->
<script type="text/javascript" >
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://hpsmartplanner.com/piwik/";
_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.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
它打印hello1“第一个警告”,但它没有打印第二个警告
任何人都可以提供任何帮助吗? 感谢名单。