Lumka ngokuLayisha iZikripthi zikaGoogle ezininzi

ga

Ngokudityaniswa okuninzi kwezixhobo kwiinkqubo ezininzi zolawulo lomxholo, sibona uninzi lwabathengi bethu benemicimbi ngezikripthi zikaGoogle ezifakwa kwiphepha elininzi amaxesha. Oku kubangela umonakalo kwi kubahlalutyi, kukhokelela ekunikeni ingxelo enkulu kubakhenkethi, amaphepha kutyelelo ngalunye kwaye kungabikho nqanaba libizayo.

Ngale mini nje sinomthengi obeneeplagi ezi-2 ezilayishiwe kwaye zilungiselelwe ukongeza isicatshulwa seGoogle Analytics kwibhlog yabo. Kwaye ayisijongi iplagi ukukhangela ukuba ngaba sele ikho into ebhaliweyo! Iziphumo zokuba utyelelo luxelwe ngaphezulu kwaye ireyithi yabo yokuhlawula ibimalunga ne-3%. Ukuba ireyithi yakho yokuhla ibuye iye ngaphantsi kwe-5%, qiniseka ukuba unengxaki ngezikripthi ezininzi kwiphepha lakho.
izinga lokuhlawula

Ngaphandle kohlalutyo, ungazi njani ukuba uyenzile le nto? Enye indlela kukujonga nje umthombo wephepha lakho kunye nokukhangela j.js. Nokuba ufuna ukubeka esweni isiza nge iiakhawunti ezininzi zikaGoogle, Kuya kubakho iskripthi esinye kuphela.

Enye indlela kukuvula izixhobo zakho zokuphucula kwisikhangeli sakho kwaye ujonge unxibelelwano lwenethiwekhi emva kokuba uhlaziye iphepha. Uyabona ukuba iskripthi se-ga.js sicelwa ngaphezulu kwesinye?
ga js

I-Google Analytics isebenza ngokulayisha iskripthi esihlanganisa lonke ulwazi, sigcina ulwazi kwiibhrawuza zebrawuza kwaye siluthumele kwiiseva zikaGoogle ngesicelo somfanekiso. Xa iskripthi silayishwe ngaphezulu kwesihlandlo esinye, ngamanye amaxesha sibhala ngaphezulu ii-cookies, kwaye sithumele izicelo zemifanekiso emininzi kwiseva. Kungenxa yoko le nto izinga lokuhlawula isezantsi kakhulu… ukuba undwendwela iphepha elingaphezulu kwesinye kwisiza, awuyi kubhampa. Ke… ukuba izikripthi zisebenza ngaphezulu kwesinye xa undwendwela iphepha elinye, oko kuthetha ukuba undwendwele amaphepha amaninzi.

Jonga iphepha lakho kunye nelakho kubahlalutyi Ukuqinisekisa eyakho kubahlalutyi Iskripthi sifakwe ngokufanelekileyo kwindawo yakho, kwaye uqiniseke ukuba awulayishi ngengozi iscript ngaphezulu kwesinye. Ukuba uyayenza, idatha yakho ayichanekanga.

2 Comments

  1. 1

    Enkosi, ndiza kuyithatha le nto. Ndicinga ukuba esi sesona sizathu sokuba indawo yam ye-ecommerce ingenazo izithuthi ezihamba nengxelo ye-analytics. Isikripthi sikagoogle sahlukile kwikhowudi yokulandela umkhondo ekhoyo kwingxelo yayo yohlalutyo lukaGoogle. enkosi mfondini.

  2. 2

    Sawubona uDouglas, ukuqonda okukhulu. Ndilahle into efanayo okoko ndiqalisile kuvavanyo kuMphathi weThegi kaGoogle kwiiveki ezimbalwa ezidlulileyo: Iphepha eli-4 / iiNdwendwe 🙂 kunye nokubuyela umva okwangoku nge-0.47% 😀

    Ukulandela iposti yakho, nantsi isiphumo sam:

    Imibhalo ebhaliweyo: Kukho i-1 ga.js (ndincamathisele kuphela ikhowudi ye-Analytics kunye noMphathi weTag kwindawo yam). Andiboni kwiskripthi sesibini (Umphathi weTgi) nasiphi na isikhombisi kwi-ga.js kodwa gtm.js kuphela. Andinayo ikhowudi enkulu njengalezo zi-1 zidityanisiwe kunye (kuqala uhlalutyo, emva koko yi-TM), ke akukho mfuneko yokuba ndisebenzise isicelo, nangona kunjalo ndijongile ne-firebug.

    2. Kwiphathi yeTag Console ndenze umsitho omnye (ixesha elifanayo lendalo, ixesha elifanayo lokulahla br). Esi siganeko ngokusisiseko sisebenza njengesiqhagamshelo sokucofa kumphulaphuli kwiiKhonkco eziPhumayo kwaye iyafana naleyo icetyiswe nguJames Cutroni kwibhlog yakhe. Kodwa ndenze uhlengahlengiso oluncinci: Inye yeNtsebenzo engeyiyo yokuNxibelelana isetelwe kwiNyaniso (engafanelanga ukuba ibethwe inqanaba lokubhabha?) Kodwa ke ndongeze i-Label = ireferensi endaweni yokuyishiya ingenanto, kuba bendifuna ukwazi apho kunqakrazo khona suka phi. (Nokuba kunjalo ndiyisusile namhlanje njengoko ingekho luncedo njengoko bendicinga)
    3. Ndisenamakhonkco ambalwa aphuma kunye ne-onClick yakudala = "_ gaq.push ()" ebethelelwe kodwa zonke zisetelwe kunqakrazo olungelulo olokwenyani.

    Enkosi,

    UDonald

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.