dilipiwik.js 975 Bytes
var _paq = _paq || [];         
$(function(){
	
	jQuery.ajax({
		type : "GET",
		url : "https://passport.nong12.com/uc/ws/helloService",
		dataType : "jsonp",
		cache:false,
		success : function(data) {
			if (data) {
				if(data.info.indexOf("logout") > 0) {
					_paq.push(['setCustomVariable',1,"UserName",$(data.info).find("#uname").html(),"visit"]);
				} else {
					_paq.push(['setCustomVariable',1,"UserName","","visit"]);
				}
			}
			_paq.push(['trackPageView']);
	    _paq.push(['enableLinkTracking']);
		},
		error : function() {
			return false;
		}
	});	
});

(function() {
	var u=(("https:" == document.location.protocol) ? "https" : "http") + "://dltj.nong12.com/";
	_paq.push(['setTrackerUrl', u+'piwik.php']);
	_paq.push(['setSiteId', 2]);
	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);
})();