ipt">
var url_stats = "http://al.autohome.com.cn/pv_count.php?SiteId=";
(function () {
if (typeof (pvTrack) != "undefined") {
setTimeout("func_stats()", 3000);
var doc = document, t = pvTrack;
var pv_site, pv_category, pv_subcategory, pv_object, pv_series, pv_type, pv_typeid, pv_spec, pv_level, pv_dealer, pv_bcTypeId, pv_ref, pv_cur;
pv_ref = escape(doc.referrer);
pv_cur = escape(doc.URL);
pv_site = t.site;
pv_category = t.category;
pv_subcategory = t.subcategory;
pv_object = t.object;
pv_series = t.series;
pv_type = t.type;
pv_typeid = t.typeid;
pv_spec = t.spec;
pv_level = t.level;
pv_dealer = t.dealer;
pv_bcTypeId = t.bcTypeId;
url_stats += pv_site + (pv_category != null ? "&CategoryId=" + pv_category : "") + (pv_subcategory != null ? "&SubCategoryId=" + pv_subcategory : "") + (pv_object != null ? "&objectid=" + pv_object : "") + (pv_series != null ? "&seriesid=" + pv_series : "") + (pv_type != null ? "&type=" + pv_type : "") + (pv_typeid != null ? "&typeid=" + pv_typeid : "") + (pv_spec != null ? "&specid=" + pv_spec : "") + (pv_level != null ? "&jbid=" + pv_level : "") + (pv_bcTypeId != null ? "&bcTypeId=" + pv_bcTypeId : "") + (pv_dealer != null ? "&dealerid=" + pv_dealer : "") + "&ref=" + pv_ref + "&cur=" + pv_cur + "&rnd=" + Math.random();
var len_url_stats = url_stats.length;
}
})();
function func_stats() {
var image = new Image(1, 1);
image.onload = image.onerror = function () {
image.onload = image.onerror = null;
image = null;
};
image.src = url_stats;
}
function pusheid(eid, a1) {
if (a1 != null) {
_trackEvent.push({ 'eid': eid, 'val': 1, 'a1': a1 });
} else {
_trackEvent.push({ 'eid': eid, 'val': 1 });
}
}
// 發(fā)送pv數(shù)據(jù)
function sendPvTrack(action, area, element, uid, authorid, pmark, objectId, extendObj) {
if (!pmark) {
pmark = 0;
}
if (!objectId) {
objectId = 0;
}
var sendExtend = $.extend({ 'authorId': authorid, 'objectId': objectId }, extendObj);
if (window.trackCustomEvent) {
trackCustomEvent('auto_common_event',
{
biz: "media",
'type': 'click', 'action': action, 'area': area, 'element': element, 'pmark': pmark,
ctime: new Date().getTime(),
cid: uid
},
sendExtend);
}
}
function pusheidforimg(eid, a1, a2) {
_trackEvent.push({ 'eid': eid, 'val': 1, 'a1': a1, 'a2': a2 });
}
//獲取url參數(shù)
function urlQuery(name = '', val = '', str = '', splitStr = '') {
const r = new RegExp(`(^|&)${name}=([^&]*)(&|$)`, 'i');
const { search, hash } = document.location;
const s = (str || search || hash).split(splitStr || '?')[1];
const v = (s && s.match(r) && s.match(r)[2]) || val;
const d = /(%[0-9A-Z]{2})+/g;
try {
return v.replace(d, decodeURIComponent);
} catch (err) {
try {
return decodeURIComponent(v);
} catch (e) {
return decodeURIComponent(escape(v));
}
}
}
// 發(fā)送pv數(shù)據(jù)
function getEventTrackObjNew(uid, authorid, objectId, sourceId, coopId, coopIf) {
if (!objectId) {
objectId = -1;
}
var eventObj = {
author_id: authorid,
user_id: uid,
objectid: objectId,
seriesid: -1,
sourceid: sourceId,
coop_id: coopId,
pvid: -1,
coop_if: ((coopIf && coopIf > 0) ? coopIf : (coopId > 0 ? 2 : 1)),//1無共創(chuàng)功能,2有共創(chuàng)功能
author_type: ((coopIf && coopIf > 0) ? coopIf : (coopId > 0 ? 2 : 1)) //1關(guān)注的是創(chuàng)作者、2關(guān)注的是其它共創(chuàng)者
};
return eventObj;
}
塘沽区|
西城区|
女性|
南安市|
突泉县|
东莞市|
黎川县|
靖安县|
荣成市|
读书|
饶河县|
镇巴县|
樟树市|
开平市|
闵行区|
兴安县|
泸州市|
沾益县|
樟树市|
南皮县|
德昌县|
进贤县|
东辽县|
昌吉市|
汽车|
调兵山市|
彩票|
海阳市|
姜堰市|
滕州市|
拉孜县|
鹤庆县|
芷江|
将乐县|
手游|
泰宁县|
工布江达县|
唐海县|
醴陵市|
衡南县|
八宿县|