Kutsata Olemba Ambiri a WordPress okhala ndi Google Analytics

Analytics Google

Ndinalemba zolemba zina momwe ndingatsatire olemba angapo mu WordPress ndi Google Analytics kale, koma ndalakwitsa! Kunja kwa WordPress Loop, simungathe kutenga mayina a olemba kuti codeyo isagwire ntchito.

Pepani polephera.

Ndapanga zokumba zowonjezerapo ndikupeza momwe ndingachitire mwanzeru ndi mbiri zingapo za Google Analytics. (Zowona mtima - ndipamene mumakonda akatswiri analytics phukusi monga Webwe!)

Gawo 1: Onjezani Mbiri ku Dongosolo Lomwe Lilipo

Gawo loyamba ndikuwonjezera mbiri yanu pazomwe muli nazo. Izi ndizosankha zomwe anthu ambiri sazidziwa koma zimagwira bwino ntchitoyi.
mbiri-profile.png

Gawo 2: Onjezani Phatikizani Fyuluta ku Mbiri Yatsopano Yolemba

Mufuna kungoyesa mawonedwe atsamba otsatiridwa ndi olemba mu mbiriyi, chifukwa chake onjezani zosefera pazowonjezera / wolemba /. Cholemba chimodzi pa izi - ndimayenera kupanga "zomwe zili ndi" ngati woyendetsa. Malangizo a Google amafuna kuti ^ isanachitike chikwatu. M'malo mwake, simungathe kulemba ... kumunda!
Phatikizani-author.png

Gawo 3: Onjezerani Fyuluta Yopatula ku Mbiri Yanu Yaikulu

Simufunikanso kutsata zowonera masamba owonjezera ndi wolemba mu Mbiri Yanu Yoyambirira, chifukwa chake onjezani zosefera kuzithunzi zanu zoyambirira kuti musachotsere tsambalo / wolemba-wolemba /.

Gawo 4: Onjezani Chingwe mu Zolemba Pansi

Mukamatsata momwe Google Analytics ilili komanso pansipa trackPageView yanu, onjezerani izi mu fayilo yanu yamapazi:

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

Izi zikuwonetsa kutsata kwanu konse, wolemba, m'mbiri yachiwiri yamalo anu. Mwa kupatula kutsatira izi kuchokera ku mbiri yanu yoyamba, simukuwonjezera zowunikira zina zosafunikira. Kumbukirani kuti ngati muli ndi tsamba lanyumba lokhala ndi zolemba 6, mudzawona zowonera masamba a 6 ndi code iyi - imodzi patsamba lililonse, yotsatiridwa ndi wolemba.

Umu ndi momwe Author Tracking adzawonere mu mbiriyi:
Chithunzi chojambula 2010-02-09 pa 10.23.32 AM.png

Ngati mwakwaniritsa izi mwanjira ina, ndili ndi mwayi wowonjezera njira zowunikira wolemba! Popeza ndalama zanga za Adsense zimalumikizidwa ndi mbiriyi, ndimatha kuwona kuti ndi olemba ati omwe akupanga zotsatsa kwambiri :).

11 Comments

  1. 1

    Ntchito yabwino Doug! Njira ina yotsatirira Olemba pamlingo uwu ndikutsata zochitika ku GA. Mutha kuwerengera kangapo zomwe olemba anu adaziwona, momwemonso ndi zomwe mumakonda, osakweza masamba. Komanso, mutha kugwiritsa ntchito magawo angapo mu malipoti a Zochitika kuti muwone komwe kumayendetsa alendo osiyanasiyana kuti awalembere (mwachitsanzo omwe akukopa owerenga ambiri kudzera pa Twitter), komwe akuchokera, ndi zina zambiri. Ndinayesa kutumiza script, koma ine anali kupitirira malire amikhalidwe. Nayi ulalo: http://www.wheresitworking.com/2010/02/08/tracking-authors-in-wordpress-with-google-analytics-event-tracking/

  2. 2
  3. 3

    Zozizwitsa, zikomo pogawana Doug uyu! Ndikupeza kuti a_author () akuyenera kusinthidwa ndi get_the_author () pofuna kuti dzina la wolemba lisapusitsidwe ndikutulutsidwa kawiri.

    Komanso yankho lanu likufanana bwanji ndi la Adam?

  4. 4

    Doug, ndimayesetsa kukhazikitsa izi, koma ndikungowunika malingaliro aomwe analemba (… / wolemba / AUTHORNAME), osati malingaliro a positi iliyonse yowonedwa, yosiyanitsidwa ndi wolemba - malingaliro aliwonse?

  5. 7

    Zikomo kwambiri. Ndikuyesera izi tsopano. Chinthu chimodzi komabe, ndidachotsa "echo" pamalopo chifukwa zikuwoneka kuti zikutsanzira dzina la wolemba. Mwachitsanzo / wolemba-Author Name AuthorAuthor Name amawoneka ndi echo.

  6. 8

    Zikomo chifukwa cha phunziroli. Ndiyenera kutsatira kuwunika kwamasamba wolemba aliyense pa blog yatsopano amapeza kuti ndiwalipire malinga ndi malingaliro.

    Kuphatikiza tsamba lofikira sikugwirabe ntchito, komabe.

    Kodi mungatulutse nambala yatsamba lofikira? Ngati codeyo ikadangoyikidwa patsamba limodzi (zosankha pamasamba achikhalidwe), kodi zingagwire ntchito? kupatula zowonera patsamba loyambira kuwerengera?

  7. 10

    Mumachita bwanji gawo 1 chonde: "onjezerani zina pazomwe mukukhala"

    Mukuwonetsa momwe mungamalize sitepe, koma osati momwe mungafikire pamenepo.

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.