Nyorera Google Analytics Campaign Querystring Simba uchishandisa jQuery

jquery

shamwari Todd mubiki akanditumira mhinduro kuburikidza Twitter yedambudziko randisina kuwana mukana wekugadzirisa mhinduro yaro. Sezvo mablog edu kuCompendium dzimwe nguva anotarisirwa kune yechipiri dura kune mutengi, tinoda kupfuura Google Analytics kodhi yemushandirapamwe kune yekutanga duraini kuti vagone kuteedzera vashanyi zvinobudirira.

Kumwe kunetsekana, zvakadaro, kuve nechokwadi chekuti mabloggi ako anogara aine kodhi yemushandirapamwe… chimwe chinhu chisingafanirwe kutarisirwa Mhinduro chaiyo ndeiyi shandisa JavaScript kuwedzera zvine simba kodhi yemushandirapamwe kana peji racho richiwanda.

document.ready (basa () {
var campaignQueryString = '? {zadza izvi mukati}';
var targetDomain = '{zadza izvi mukati}';
$ ("a [href = 'http: // www." + targetDomain + "]'"). (function () {
iyi.href + = mushandirapamweQueryString;
});
});

Iyi mhinduro chaiyo inoshandisa uye inoda jQuery, yakavhurwa sosi JavaScript chimiro. Ndiri fan guru rejQuery yekuwedzera mamwe akanaka mawebhusaiti . Ini ndanzwa mhinduro yekuti vamwe vanogadzira mabhizinesi havafarire kuyedza kuenderana neshanduro, hazvo.

Kana iwe ukashandisa iri pamusoro kodhi, iwe unofanirwa kusanganisira jQuery. Ndinokurudzira kurodha pasi kubva kuGoogle. Sezvo vanhu vazhinji vari kuita izvi, peji rako rinoremerwa nekukurumidza zvakanyanya sezvo kodhi yakachengetwa, iine yakatakurwa kare.


Google inotopa URL Muvaki kukuratidza maitiro ekuvaka yako mushandirapamwe querystring. Kana iwe uchida kunyatso farira, ini ndinokurudzira kuwedzera muzvinhu zvakaita semazwi akakosha, zvikamu, vanyori, nezvimwe.

Pfungwa

  1. 1

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.