Landelela Ababhali Abaningi nge-Google Analytics

-Google Analytics

Kwisayithi lababhali abaningi, umbhali ngamunye angathumela ngezigaba eziningi, cishe akunakwenzeka ukubona iminikelo yombhali ngamunye kumasu jikelele wesayithi. Bengikwenza ukuhlolwa ngalokhu muva nje futhi ngithole indlela elula enhle yokulinganisa ithrafikhi ngumbhali ngamunye.

-Google Analytics inekhono lokulandela okwengeziwe virtual amakhasi. Lokhu kusetshenziselwa ukulandela izixhumanisi eziphumayo zokukhangisa noma izingcingo ezenzelwa amakhasi wokufika. Kodwa-ke, ngokumane usebenzise ikhodi yakho ye-Google Analytics kumakhasi akho weposi elilodwa, ungalandelela ukuthandwa kombhali ngamunye.

Ikhodi ejwayelekile ye-GA ekhasini ibukeka kanjena:

var ikhasiTracker = _gat._getTracker ("UA-XXXXXX-X"); ikhasiTracker._initData (); ikhasiTracker._trackPageview ();

Ungafaka ukubuka 'kwekhasi' ngokungeza okulandelayo:

var ikhasiTracker = _gat._getTracker ("UA-XXXXXX-X"); ikhasiTracker._initData (); ikhasiTracker._trackPageview ("/ ngu / umbhali /Douglas Karr"); ikhasiTracker._trackPageview ();

Ukwenza ngokwezifiso i-WordPress:

var ikhasiTracker = _gat._getTracker ("UA-XXXXXX-X"); ikhasiTracker._initData (); ikhasiTracker._trackPageview (? / umbhali / ?); ikhasiTracker._trackPageview ();

UPDATE: Abaphawuli abambalwa baveze ukuthi akusebenzi - bekufanele ngengeze abadumile I-WordPress loop phakathi!

Lokhu kuzolayisha kuphela ukubukwa kwekhasi okudingekayo ekhasini elilodwa leposi. Ungahle uthande ukunweba lokhu ukuqapha okuthunyelwe kokuqala ekhasini lasekhaya futhi, kepha lokhu okungenani kuyisiqalo. Ngaphakathi kwe-Google Analytics, ungavula ifayela le- Umbiko Wokuqukethwe bese umane uyihlunga nge “/ Umbhali /” ukuthola uhlu lwabo bonke ababhali nokubukwa kwabo kwekhasi okuhambisanayo, amazinga we-bounce, isikhathi ekhasini, nokuguqulwa.

Manje usungaqala ukuklomelisa ababhali bakho ngomnikelo woqobo abaletha enhlanganweni yakho! Ngazise uma ungena ezinkingeni usebenzisa i-WordPress - ngibhale ikhodi futhi angizange ngiyivivinye.

16 Amazwana

  1. 1

    O, KUHLE! Anginabo ababhali abaningi kuma-blog wami okwamanje, kepha nakanjani ngizokubekisa lokhu ukuthi lokhu kufanele kwenzeke nini. Amathiphu amahle !!

  2. 2
    • 3

      Sawubona yawza!

      Indlela elula, ukusebenzisa indlela engenhla ukuvula umbiko wokuqukethwe nokuhlunga ngo “/ umbhali /”. Ngaleso sikhathi, ungathumela lo mbiko nge-imeyili kuwe masonto onke. IGoogle Analytics yenza umsebenzi omuhle wokonga izihlungi kwimibiko ethunyelwe nge-imeyili (ngifisa sengathi bangavumela ukugcinwa kombiko ngaleyo ndlela!).

      Doug

  3. 4

    Ngizamile ukufaka iKhodi yakho kepha ayisebenzi kimi. Nginababhali abayi-4 Kubhulogi Lami le-WordPress futhi nayi ikhodi engiyinamathisele Ngaphambi nje kwethegi kusifanekiso sami

    var gaJsHost = ((““ https: ”== document.location.protocol)?“ https: // ssl. ”:“ http: // www. ”);
    document.write (unescape (“% 3Cscript src = '” + gaJsHost + “google-analytics.com/ga.js' type = 'text / javascript'% 3E% 3C / script% 3E”)));

    zama {
    var ikhasiTracker = _gat._getTracker (“UA-XXXXXX-X”);
    ikhasiTracker._initData ();

    ikhasiTracker._trackPageview (? / umbhali /?);

    ikhasiTracker._trackPageview ();
    } bamba (iphutha) {}

    Ngithathe indawo ye-UA-XXXXXX-X nge-ID yami…. Ngicela ungitshele ukuthi ikhodi yami ilungile noma ayilungile.

    Uma ngibheka kumthombo ngibona umbhali oyedwa kuphela ekhonjisiwe. Futhi Ngolwazi lwakho angisebenzisi noma iyiphi i-plugin ye-WordPress.

    Sicela usize! Ngikudinga kabi lokhu ..

    Ngiyabonga

  4. 5

    Ngikholwa ukuthi leyo ndlela yokulandela ngomkhondo izosebenza kuphela uma isakhiwo sakho se-permalink sifaka umbhali. Imayini ayikwenzi lokho ukukulandela kanjani ukubukwa kwamakhasi kombhali othile lapho isakhiwo sami se-url sinjalo http://www.mysite.com/month/day/posttitle?

    Ingabe ikhodi ingaguqulwa ukuze isebenzise _ _setVar function?

    Ngizamile le khodi elandelayo:

    var pageTracker = _gat._getTracker("UA-XXXXXXX-X");

    pageTracker._setVar(??);

    pageTracker._trackPageview();

    kepha anginasiqiniseko sokuthi ngiyaqonda ukuthi usebenza kanjani lowo msebenzi noma uma usebenza. Ngimusha kulokhu.

  5. 7

    ukungeza ukuphawula kwami ​​kokubuka kuqala…

    Inkinga enginayo ukuthi kufanele ibizwe ngaphakathi kweLoop kepha imvamisa ufaka i-GATC kunyaweni noma kunhlokweni, hhayi kuwo wonke amafayili wethempulethi aphethe i-loop. Imicabango?

    • 8

      Mat - Ngicabanga ukuthi wena nami senzeke empendweni ngasikhathi sinye, kufanele kube ngaphakathi. Ngiguqule ikhodi futhi ngikholelwa ukuthi i-loop isazosebenza ngaphandle komzimba naku-footer. Kungenzeka yenziwe lula ngokusetha okuguqukayo ngaphakathi kweluphu ejwayelekile bese uyibiza kusuka kunyaweni.

      Abanye babahlaziyi bebelokhu behlola - sizobona ukuthi lokhu kusebenza kahle yini! Ngangiyibona inciphisa ikhasi, noma kunjalo.

      Doug

  6. 9
  7. 10
  8. 11

    Lokhu ukuqonda okuhle ngokusetshenziswa kwe-GA. Nakanjani ngizokwaba lokhu namakhasimende ami. Siyabonga ngokuthumela lokhu. Kuyahlekisa ukuthi sikhohlwa kanjani kalula ukuthi iJavascript ingasetshenziswa lapho simatasa kakhulu sengeza ikhodi emakhasini!

    I-TGP - Ngempela Iposi Elikhulu!

    itshe

  9. 12

    Ngizamile le khodi ku-joomla.

    ngemuva kwezinsuku ezimbili zomthetho… Ngibona kuphela / i-autor / i-someauthor kumthetho wami. Angisaboni i-uri yangempela yekhasi.

  10. 13

    Ngakho-ke, siyini isinqumo lapha? Ngijabule kakhulu ngale khodi kepha anginandawo yamaphutha. Douglas, lithini igama? Angiboni ukuxoxa okuningi ngemuva kokuthunyelwe kwakho kokugcina maqondana nempumelelo / cha.

    Siyabonga nombono omuhle!

  11. 14

    Isinqumo ukuthi kungu-50% wesixazululo, Ross! Kufanele ucacise umbhali ku-Loop… uma wenza njalo, khona-ke izodlulisela imininingwane yomlobi ku-Google. Kodwa-ke, iGoogle selokhu yashintsha ukuthunjwa kwedatha yayo futhi ivumela ukuguquguquka okungaphezu kokukodwa manje… ngakho-ke ngizoyeka le ndlela ngokuphelele. Ngizozama ukubhala ukulandelela!

  12. 15

    Sawubona Douglas,
    Ngifuna nesisombululo sokulandela okuqukethwe okuqondene nombhali ku-WordPress ngisebenzisa i-GA. Ngingathanda ukubona inguqulo ebuyekeziwe yale khodi njengoba ngiyidinga kubhulogi lami elilodwa lababhali abaningi. Ngabe uzokwazi ukubhala ukulandelela? Ngizobhala ngakho bese ngikunikeze izinsiza ezithile. 🙂 Siyabonga ngemininingwane emangalisayo njengenjwayelo.

  13. 16

    Ngiyabonga ngempendulo esheshayo uDoug, ngilangazelela ukubona isibuyekezo uma unesikhashana. Jabulela okuthunyelwe okuhle nokulandelwa okuhle!

    URoss Dunn

UCABANGANI?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda ukuthi idatha yakho yokuphawula isetshenziswa kanjani.