Sochie otutu ndi edemede na Google Analytics

Google Analytics

Na ọtụtụ saịtị edemede, onye edemede ọ bụla nwere ike biputere n'ọtụtụ edemede, ọ fọrọ nke nta ka ọ ghara ikwe omume ịchọpụta onyinye onye edemede ọ bụla na atụmatụ nke saịtị ahụ. M na-eme ụfọdụ ule na nke a n'oge na-adịbeghị anya ma chọpụta ụzọ dị mma nke dị mfe iji tụọ okporo ụzọ site n'aka onye edemede ọ bụla.

Google Analytics nwere ikike soro ndị ọzọ virtual peeji nke. Nke a na-Elezie tinye n'ọrụ soro outbound njikọ na mgbasa ozi ma ọ bụ oku ka emereme ka ọdịda peeji. Agbanyeghị, site na ịmegharị koodu Google Analytics gị na ibe akwụkwọ ozi gị, ịnwere ike ịgbaso ewu ewu nke ndị ode akwụkwọ ọ bụla.

Codedị GA koodu na ibe dị ka nke a:

var pageTracker = _gat._getTracker ("UA-XXXXXX-X"); peeji nke Tracker._initData (); peeji nke Tracker._trackPageview ();

Nwere ike itinye ihe ngosi 'mebere' site na itinye ihe ndị a:

var pageTracker = _gat._getTracker ("UA-XXXXXX-X"); peeji nke Tracker._initData (); pageTracker._trackPageview ("/ site / onye edemede /Douglas Karr"); peeji nke Tracker._trackPageview ();

Iji hazie WordPress:

var pageTracker = _gat._getTracker ("UA-XXXXXX-X"); peeji nke Tracker._initData (); peeji nke Tracker._trackPageview (? / edemede / ?); peeji nke Tracker._trackPageview ();

Melite: Otu di na nwunye na-ekwu okwu kwuru na ọ naghị arụ ọrụ - m ga-agbakwunye ama ama WordPress loop n'ime!

Nke a ga - ehichapụ peeji dị mkpa na peeji nke Single Post. Nwere ike ịgbatị nke a iji nyochaa ọkwa izizi na ibe obibi, mana nke a bụ mmalite. N'ime Google Analytics, ị nwere ike imeghe a Nkwupụta ọdịnaya ma wepu ya site na “/ Edemede /” iji nweta ndepụta nke ndị edemede niile na echiche peeji ha metụtara, ọnụego ibiaghachi, oge na peeji, na ntụgharị.

Ugbu a ị nwere ike bido kwụghachi ndị edemede gị ụgwọ maka onyinye ha na-eweta n'ọgbakọ gị! Mee ka m mara ma ọ bụrụ na ị banye n'ime nsogbu site na iji WordPress - Edere m koodu ahụ ma anwaleghị ya.

16 Comments

  1. 1

    Oh, ỌR N! Enweghị m ọtụtụ ndị ode akwụkwọ na blọọgụ m, mana m ga - edepụta nke a maka mgbe nke a ga - eme. Ezigbo ndụmọdụ !!

  2. 2
    • 3

      Hey egwu!

      Easiestzọ kachasị mfe, iji usoro dị n'elu bụ imepe akụkọ ọdịnaya na nzacha site na "/ edemede /". N'oge ahụ, ịnwere ike izipu ozi ahụ n'onwe gị kwa izu. Nchịkọta Google na-arụ ọrụ dị mma nke ịchekwa nzacha na akụkọ emelitere (Achọrọ m ka ha kwe ka ịchekwa akụkọ ahụ n'ụzọ ahụ!).

      Doug

  3. 4

    Agbalịrị m itinye koodu gị mana ọ naghị arụ ọrụ maka m. Enwere m 4 ndị ode akwụkwọ Na My WordPress Blog na nke a bụ koodu m pasted Tupu mkpado na ndebiri m

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

    gbalịa {
    var pageTracker = _gat._getTracker ("UA-XXXXXX-X");
    peeji nke Tracker._initData ();

    peeji nke Tracker._trackPageview (? / edemede /?);

    peeji nke Tracker._trackPageview ();
    } nwude (err) {}

    M dochie UA-XXXXXX-X na My ID…. Biko gwa m ma My koodu ziri ezi ma ọ bụ ihe ọjọọ.

    Mgbe m lere isi iyi m Hụ naanị onye edemede gosipụtara. Maka ozi gị Anaghị m eji ngwa mgbakwunye WordPress ọ bụla.

    Biko nyere aka! Achọrọ m nke a Badly ..

    Daalụ

  4. 5

    Ekwenyere m na usoro nsuso ahụ ga-arụ ọrụ naanị ma ọ bụrụ na usoro gị permalink gụnyere onye edemede. M na-adịghị otú m nwere ike soro pageviews maka otu onye edemede mgbe m url Ọdịdị bụ http://www.mysite.com/month/day/posttitle?

    Enwere ike gbanwee koodu ahụ iji jiri _setVar arụ ọrụ?

    Agbalịrị m koodu na-esonụ:

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

    pageTracker._setVar(??);

    pageTracker._trackPageview();

    mana echeghị m na m ghọtara otú ọrụ ahụ si arụ ọrụ ma ọ bụ na ọ na-arụ ọrụ. Adị m ọhụrụ na nke a.

    • 6

      Ekwenyere m na amaara m ihe okwu ahụ bụ, ị ga-ehichapụ php na WordPress loop. N'ụzọ dị mwute, WordPress anaghị amata ọdịiche ma ọ bụ otu ibe ma ọ bụ na ọ bụghị. Aga m emelite koodu na blog post.

  5. 7

    ịgbakwunye na preview m ikwu…

    Nsogbu m nwere bụ na a ga-akpọ ya n'ime Loop mana ọ na-etinye GATC na ụkwụ ma ọ bụ nkụnye eji isi mee, ọ bụghị na faịlụ ndebiri ọ bụla nke na-ejide aka. Echiche?

    • 8

      Matt - Echere m na mụ na gị mere na nzaghachi n'otu oge ahụ, ọ ga-abụrịrị n'ime akaghị. Emego m koodu ahụ ma kwere na akaghị ga-arụ ọrụ na mpụga ahụ na n'okpuru. Enwere ike ime ka ọ dị mfe site na ịtọgharị ihe na-agbanwe n'ime usoro nkịtị wee kpọọ ya site na ụkwụ.

      Offọdụ n'ime ndị na-ekwu okwu a na-anwale - anyị ga-ahụ ma ọ bụrụ na nke a na-arụ ọrụ nke ọma! Enwere m ike ịhụ na ọ na-ebelata ibe, ọ bụ ezie.

      Doug

  6. 9
  7. 10
  8. 11

    Nke a bụ ezigbo nghọta banyere ojiji GA. Aga m eso ndị ahịa m kerịta nke a. Daalụ maka biputere nke a. Nke oma otu anyi si echefu na anyi nwere ike ichikota Javascript mgbe anyi na-agbasi ike itinye koodu na peeji!

    TGP - N'ezie nnukwu ọkwa!

    Pierre

  9. 12

    Agbalịrị m koodu a na joomla.

    after 2 ụbọchị nke stat… I see only / autor / someauthor in my stat. Anaghị m ahụ ezigbo uri nke ibe ahụ.

  10. 13

    Ya mere, gịnị bụ mkpebi ebe a? Enwere m mmasị na koodu a mana enweghị m ohere maka mmejọ. Douglas, gini bụ okwu ahụ? Anaghị m ahụ ọtụtụ nkata mgbe ọkwa ikpeazụ gị gbasara ihe ịga nke ọma / ọ bụghị.

    Daalụ na nnukwu echiche!

  11. 14

    Mkpebi bụ na ọ bụ 50% nke azịza ya, Ross! Must ga-ezipụta na-ede akwụkwọ na Loop… ma ọ bụrụ na ị na-eme, mgbe ahụ ọ ga-n'ụzọ ziri ezi nyefee ode akwụkwọ ozi Google. Agbanyeghị, Google agbanweela ya ọ bụ ijide data ma nye ohere karịa otu na-agbanwe ugbu a… yabụ m ga-ahapụ usoro a kpamkpam. Aga m agbali ide ederede!

  12. 15

    Hey Douglas,
    Ana m achọkwa azịza iji soro ọdịnaya ederede ode akwụkwọ na WordPress iji GA. Ọ ga-amasị m ịhụ ụdị koodu a emelitere dịka m chọrọ ya maka otu blọọgụ ọtụtụ ederede. You ga-enwe ike ide ederede na-esote? Aga m ede banyere ya ma nye gị ụfọdụ ihe nkwado. 🙂 Daalụ maka nghọta dị egwu dị ka ọ dị na mbụ.

  13. 16

    Daalụ maka nzaghachi ọsọ ọsọ Doug, m na-atụ anya ịhụ mmelite ahụ mgbe ịnwere oge. Ọersụ na a oké post na oké na-esochi!

    Ross Dunn

Kedu ihe ị chere?

Ebe a na-eji Akismet iji belata spam. Mụta otu esi etinye usoro data gị.