define("piwik",function(require) { var $ = require('jquery'); var base = require('base'); //var _paq = _paq || []; var _s_tid=$.cookie("dp_tid"); var _s_item = $("meta[name='item-id']").attr('content'); var _s_itemType = $("meta[name='item-type']").attr('content'); var _s_itemTags= $("meta[name='keywords']").attr('content'); if(typeof(_s_itemType) == "undefined"||_s_itemType==""){ _s_itemType="temp"; } if(typeof(_s_itemTags) == "undefined"||_s_itemTags==""){ _s_itemTags=$("title").html(); } var _s_uid = "0"; _paq.push(['setFavorite', _s_tid, _s_uid, _s_itemType, _s_item, _s_itemTags]); //console.log(_s_tid+"||"+_s_uid+"||"+_s_itemType+"||"+_s_itemTags); }); //seajs.use('piwik');