Ku lifaaq ololaha Google Analytics Querystring si firfircoon adoo adeegsanaya jQuery

jquery

Saaxiibow Todd rootiga xal ii soo diray via Twitter dhibaato aanan fursad u helin inaan xal u helo. Maaddaama baloogyadayada ku yaal Compendium mararka qaarkood lagu marti geliyo degmo labaad oo macaamiil ah, waxaan jeclaan lahayn inaan ka gudubno Koodhka ololaha Google Analytics barta aasaasiga ah si ay ula socdaan martida si wax ku ool ah.

Dhibaato kale, in kastoo, ay hubineyso in qorayaashaada wax qora ay had iyo jeer ku daraan lambar olole… wax aan la fileynin. Xalka saxda ah ayaa ah u adeegso JavaScript si aad si firfircoon ugu darto koodhka ololaha markii boggu rarto.

document.ready (function () {
var campaignQueryString = '? {ku buuxi tan}';
var targetDomain = '{ku buuxi tan}';
$ ("a [href = 'http: // www." + targetDomain + "]'"). midkiiba (function () {
this.href + = ololahaQueryString;
});
});

Xalkan gaarka ah wuxuu adeegsadaa oo ubaahan yahay jQuery, oo ah qaab furan JavaScript qaab. Waxaan ahay taageere weyn oo jQuery ah si loogu daro xoogaa saameyn ah bogagga internetka . Waxaan maqlay jawaab celin ah in qaar ka mid ah horumariyeyaasha shirkadaha aysan qadarinin isku dayga inay la socdaan nooca, in kastoo.

Haddii aad isticmaasho lambarka kor ku xusan, waa inaad ku dartaa jQuery. Waxaan kugula talin lahaa inaad ka soo rarto Google. Maaddaama dad badani ay tan samaynayaan, boggaagu si dhakhso leh ayuu u rari doonaa maaddaama koodhku kaydsan yahay, isagoo horay loo raray.


Google xitaa waxay siisaa a URL Builder si uu kuu tuso sida loo dhiso ololahaaga querystring. Haddii aad rabto inaad si dhab ah uhesho, waxaan kugula talin lahaa inaad ku darto walxaha sida ereyada muhiimka ah, qaybaha, qorayaasha, iwm.

One comment

  1. 1

Maxay idinla tahay?

Boggani wuxuu isticmaalaa Akismet si loo yareeyo spam. Baro sida xogtaada faallooyinkaaga looga shaqeeyo.