Ukulandelela Ababhali Abaningi be-WordPress abane-Google Analytics

-Google Analytics

Ngibhale okunye okuthunyelwe kokuthi ungalandelela kanjani ababhali abaningi ku-WordPress ngeGoogle Analytics phambilini, kepha ngithole okungalungile! Ngaphandle kwe-WordPress Loop, awukwazi ukuthwebula amagama ombhali ngakho-ke ikhodi ayisebenzi.

Uxolo ngokungaphumeleli.

Ngenze ukumba okungeziwe futhi ngathola ukuthi ngikwenza kanjani ngobuchule ngamaphrofayili amaningi we-Google Analytics. (Ngokwethembeka impela - lokhu kulapho uqala ukuthanda ubungcweti analytics amaphakheji afana Webtrends!)

Isinyathelo 1: Faka iphrofayela kusizinda esivele sikhona

Isinyathelo sokuqala ukufaka iphrofayili eyengeziwe esizindeni sakho samanje. Le inketho abantu abaningi abangayijwayele kepha isebenza ngokuphelele kulolu hlobo lwesimo.
ekhona-profile.png

Isinyathelo 2: Faka Isihlungi Sokufaka kuphrofayela yombhali omusha

Uzofuna ukukala kuphela ukubukwa kwamakhasi okulandelwa ababhali kule phrofayili, ngakho-ke engeza isihlungi sombhalo ongezansi / umbhali /. Inothi elilodwa kulokhu - bekufanele ngenze "lokho okuqukethe" njengo-opharetha. Imiyalo yeGoogle ifuna i ^ ngaphambi kwefolda. Eqinisweni, awukwazi ukubhala i ^ ensimini!
Faka-umbhali.png

Isinyathelo 3: Faka isihlungi esingafakwanga kuphrofayela yakho eyinhloko

Ngeke ufune ukulandelela empeleni konke ukubukwa kwamakhasi okungeziwe ngumbhali kuphrofayela yakho yoqobo, ngakho-ke engeza okokuhlunga kuphrofayela yakho yoqobo ukukhipha umbhalo ongezansi / ngumbhali /.

Isinyathelo 4: Faka iluphu ku-Footer Script

Ngaphakathi kokulandela kwakho okukhona kwe-Google Analytics nangaphansi komugqa wakho wamanje we-trackPageView, engeza iluphu elandelayo kufayela lakho lengqikithi yonyawo:

var authorTracker = _gat._getTracker ("UA-xxxxxxxx-x"); umbhaliTracker._trackPageview ("/ ngumbhali / ");

Lokhu kuzobamba konke ukulandelela kwakho, ngumbhali, kuphrofayela yesibili yesizinda sakho. Ngokukhipha lokhu kulandelwa kuphrofayela yakho eyinhloko, awungezi ukubukwa kwamakhasi okungadingekile. Khumbula ukuthi uma unekhasi lasekhaya elinokuthunyelwe okungu-6, uzolandelela ukubukwa kwamakhasi ama-6 ngale khodi - eyodwa kokuthunyelwe ngakunye, okulandelwa ngumlobi.

Nakhu ukuthi i-Author Tracking izobukeka kanjani kuleyo phrofayili ethile:
Isikrini esingu-2010-02-09 ngo-10.23.32 AM.png

Uma ukwenze lokhu ngenye indlela, ngivulekele izindlela ezingeziwe zokulandela imininingwane yombhali! Njengoba imali yami ye-Adsense ihlotshaniswa nephrofayili, ngiyabona ngisho nokuthi yibaphi ababhali abathola imali engenayo kakhulu yesikhangiso :)

11 Amazwana

  1. 1

    Okuthunyelwe okuhle uDoug! Enye indlela yokulandela ababhali kuleli zinga ukulandela ngomcimbi ku-GA. Ungathola isibalo sokuthi kukangaki okuthunyelwe ngakunye kwababhali bakho kubukwe, kuphrofayili efanayo nedatha yakho ejwayelekile, ngaphandle kokubukisa okubukwayo kwamakhasi. Futhi, ungasebenzisa ubukhulu obuningi ekubikeni komcimbi ukubona ukuthi yimiphi imithombo ebishayela izivakashi kubabhali abahlukahlukene (isb. Ngubani odonsa abafundi abaningi nge-Twitter), lapho bevela khona, njll. Ngizamile ukuthumela iskripthi, kepha mina yayingaphezu komkhawulo wezinhlamvu. Nasi isixhumanisi: http://www.wheresitworking.com/2010/02/08/tracking-authors-in-wordpress-with-google-analytics-event-tracking/

  2. 2
  3. 3

    Awesome, thanks for sharing this Doug! I’m finding that the_author() needs to be replaced with get_the_author() in order to prevent the author name being duplicated and outputted twice.

    Futhi, isixazululo sakho siqhathaniswa kanjani nesika-Adam?

  4. 4

    UDoug, ngazama ukusebenzisa lokhu, kepha kumane kungumbono wokulandela umkhondo wamakhasi wombhali wangempela (… / author / AUTHORNAME), hhayi ukubukwa kokuthunyelwe ngakunye okubukiwe, okuhlukaniswe ngumbhali - kukhona imicabango?

    • 5

      Sawubona uJeremy!

      The way I implemented it was actually utilizing two different accounts within Google Analytics (separate UA codes). I call one account “Author” and the other one I keep as the entire site. Make sense?

      Doug

  5. 7

    Ngibonga kakhulu. Ngizama lokhu manje. Into eyodwa noma kunjalo, ngikhiphe i- "echo" ku-loop ngoba bekubonakala sengathi ilingisa igama lomlobi. Isibonelo / ngumbhali / igama lomlobiIgama lomlobi lalivela nge-echo.

  6. 8

    Siyabonga ngokufundisa. Ngidinga ukulandelela ukubukwa kwamakhasi umbhali ngamunye kubhulogi lezindaba aqoqekayo ukuze akubakhokhele ngokubukwa.

    Ukufaka ikhasi eliyisiqalo akusebenzi ngempela, noma kunjalo.

    Ungavele ukhiphe ikhodi ekhasini eliyisiqalo? Uma leyo khodi ibifakwe kuphela kuzakhiwo zekhasi elilodwa (inketho kumakhasi ewebhu wangokwezifiso), bekungasebenza lokho? ngaphandle kokubukwa kwekhasi eliyisiqalo kusukela ekubalweni?

  7. 10

    Ngabe wenza kanjani isinyathelo sokuqala sicela: “engeza iphrofayili eyengeziwe esizindeni sakho samanje”

    Ukhombisa ukuthi ungasiqedela kanjani lesi sinyathelo, kodwa hhayi ukuthi ufika kanjani kwasekuqaleni.

UCABANGANI?

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