Kuteedzera Akawanda WordPress Vanyori neGoogle Analytics

Google Analytics

Ini ndakanyora imwe posvo yekuti ungateedzera sei vanyori vakawanda muWordPress neGoogle Analytics zvakamboitika, asi zvakakanganisa! Kunze kweiyo WordPress Loop, haugone kutora mazita emunyori saka kodhi haina kushanda.

Ndine urombo nekutadza.

Ini ndamboita imwe yekuchera nekuchera ndikaona maitiro ekuzviita nenjere nemazhinji Google Analytics profiles. (Chokwadi chaizvo - ndipo paunosvika pakuda hunyanzvi analytics mapakeji senge Webtrends!)

Nhanho 1: Wedzera iyo Mbiri kune Iripo Domain

Nhanho yekutanga ndeyekuwedzera imwe nhoroondo kudunhu rako razvino. Iyi sarudzo iyo vanhu vazhinji vasingazive nezvayo asi inoshanda zvakakwana kune iyi mhando yechiitiko.
chiripo-profile.png

Nhanho 2: Wedzera iyo Sanganisira Firita kune Nyowani Munyori Mbiri

Iwe uchazoda chete kuyera peji maonero akateedzerwa nevanyori mune ino purogiramu, saka wedzera firita yeiyo subdirectory / munyori /. Imwe katsamba pane izvi - ndaifanira kugadzira "izvo zvine" seanoshanda. Mirayiridzo yeGoogle inodaidzira a ^ pamberi pefaira. Muchokwadi, haugone kunyora ... mumunda!
Sanganisira-munyori.png

Nhanho 3: Wedzera iyo Bvisa Firita kune yako Yekutanga Mbiri

Iwe haudi kuda kunyatso tarisa ese ekuwedzera mapeji ekuona nemunyori muPurofesa yako yekutanga, saka wedzera firita kune yako yekutanga nhoroondo kusabvisa iyo subdirectory / nemunyori /.

Nhanho 4: Wedzera chiRoop muiyo Footer script

Mukati meyako iripo Google Analytics yekutevera uye pazasi yazvino trackPageView mutsara, wedzera chinotevera chiuno mune rako tsoka tsoka faira:

var munyoriTracker = _gat._getTracker ("UA-xxxxxxxx-x"); munyoriTracker._trackPageview ("/ na-munyori / ");

Izvi zvinotora zvese zvako zvekutevera, nemunyori, mune yechipiri nhoroondo yedomain yako. Nekusabvisa iyi yekutevera kubva kune yako yekutanga profile, iwe haawedzere kuwedzeredza zvisina basa peji rekutarisa. Ramba uchifunga kuti kana iwe uine peji repamba rine matanhatu maposita, iwe unoteedzera matanhatu mapeji ekuongorora nekodhi iyi - imwe yeimwe posvo, inoteverwa nemunyori.

Heano maratidziro anozoitwa neMunyori Kuongorora mune iyo chaiyo profil.
Screen shot 2010-02-09 pa 10.23.32 AM.png

Kana iwe waita izvi neimwe nzira, ini ndakavhurika kune dzimwe nzira dzekutevera ruzivo rwemunyori! Sezvo yangu Adsense mari inosanganisirwa neprofile, ini ndinogona kutoona ndevapi vanyori vari kugadzira yakanyanya kushambadzira mari :).

11 Comments

  1. 1

    Great post Doug! An alternative for tracking Authors at this level is with event tracking in GA. You can get a tally of how many times each of your authors’ posts were viewed, in the same profile as your regular data, without inflating pageviews. Also, you can use multiple dimensions in the Event reporting to see what sources were driving visitors to various authors (e.g. who is attracting the most readers via Twitter), where they are coming from, etc. I tried to post the script, but I was over the character limit. Here is the link: 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.

    Also, how does your solution compare with Adam’s?

  4. 4
    • 5

      Hi Jeremy!

      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

    Thanks very much. I’m trying this out now. One thing though, I removed “echo” out of the loop because it seemed to be duplicating the author name. For instance /by-author/Author NameAuthor Name was appearing with the echo.

  6. 8

    Thanks for the tutorial. I need to track the pageviews each writer on a news blog accumulates in order to pay them by views.

    Including the homepage doesn’t really work, though.

    Can you just exclude code from the homepage? If that code was inserted only in the single-page layouts (an option on custom webpages), would that work? excluding homepage views from the count?

  7. 10

    How do you do step 1 please: “add an additional profile to your current domain”

    You show how to complete the step, but not how to get there in the first place.

Unofungei?

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