Ulandela njani ukungeniswa kweFom Elementor kwiiMeko zikaGoogle zoHlalutyo usebenzisa iJQuery

Ulandela njani ukungeniswa kweFom Elementor kwiZiganeko zoHlaziyo lukaGoogle

Kudala ndisebenza kwindawo yabathengi yeWordPress kwezi veki zimbalwa zidlulileyo ezinezinto ezimbalwa ezinzima. Bayasebenzisa WordPress ngokudityaniswa ActiveCampaign yokukhulisa izikhokelo kunye a Zapier Umdibaniso Zendesk Thengisa ngokusebenzisa Iifom ze-Elementor. Yinkqubo elungileyo… ukukhaba iphulo lokudriphu kubantu abafuna ulwazi kunye nokuqhubela phambili kummeli wentengiso ofanelekileyo xa uceliwe. Ndichukunyiswe ngokwenene yindlela yokuguquguquka komntu kwaye ujonge kwaye uzive.

Inyathelo lokugqibela yayikukubonelela ngedeshibhodi ye-analytics yomthengi ngeGoogle Analytics ebanike ukusebenza kwenyanga nenyanga kwifom yokungeniswa kweefom. Bane-Google Tag Manager efakiweyo, ke ngoku sele sifaka ukuthengiselana nge-e-commerce kunye nokujonga umsebenzi we-YouTube kwindawo leyo.

Ndenze iinzame ezininzi zokusebenzisa i-DOM, izinto ezibangela, kunye neziganeko ngaphakathi kuGoogle Tag Manager ukubamba ifom ephumeleleyo yokungenisa i-Elementor kodwa andabinayo kwaphela ithamsanqa. Ndivavanye itoni yeendlela ezahlukeneyo zokujonga iphepha, ukujonga umyalezo ophumeleleyo oza kuvela nge-AJAX kwaye ayisebenzi. Ke… ndenze uphando ndaza ndafumana isisombululo esikhulu kwi-Tracking Chef, ebizwa Ukulandela umkhondo we-Elementor Elementor nge-GTM.

Iskripthi sisebenzisa jQuery kunye noMphathi weThegi kaGoogle ukutyhala Umnyhadala woHlaziyo lukaGoogle xa ifom ingeniswe ngempumelelo. Olunye uhlengahlengiso oluncinci kunye nophuculo olunye lwe-syntax, bendinayo yonke into endiyifunayo. Nantsi ikhowudi:

<script>
jQuery(document).ready(function($) {
    $(document).on('submit_success', function(evt) {
      window.dataLayer = window.dataLayer || [];
      window.dataLayer.push({
            'event': 'ga_event',
            'eventCategory': 'Form ',
            'eventAction': evt.target.name,
            'eventLabel': 'Submission'
        });
    });
});
</script>

Buhle buhle, ujonge ukungeniswa ngempumelelo, emva koko udlule imo njengoluhlu, i igama lendawo ekuyiwa kuyo njenge Action, kunye ukungeniswa njengelebheli. Ngokwenza inkqubo ekujolise kuyo, unokufumana nje le khowudi esezantsi kwephepha ngalinye ukujonga ukungeniswa kwefom. Ke… njengoko usongeza okanye uguqula iifom, awusoze ukhathazeke ngokuhlaziya iskripthi okanye ukongeza kwelinye iphepha.

Faka iSkripthi nge-Elementor Custom Code

Ukuba ungummeli, ndingacebisa kakhulu uhlaziyo olungenamda kunye nokusebenzisa i-Elementor yabo bonke abathengi bakho. Iqonga eliqinileyo kunye nenani lokudityaniswa kwamaqabane liyaqhubeka nokunyuka. Yidibanise nePlagi njenge Ifom yoQhakamshelwano DB kwaye unokuqokelela zonke iifom ezingenisiweyo.

Umncedisi we-Pro Unokhetho olukhulu lolawulo lweskripthi olwakhelwe ngaphakathi. Nantsi indlela onokufaka ngayo ikhowudi yakho:

Ikhowudi yesiqhelo ye-Elementor

  • Jonga ku Elementor> Ikhowudi yesiqhelo
  • Nika igama ikhowudi yakho
  • Misela indawo, kule meko isiphelo Ithegi yomzimba.
  • Cwangcisa into ephambili ukuba uneskripthi esingaphezulu kwesinye ofuna ukusifaka kunye nokuseta iodolo yazo.

Ukungeniswa kweFom Elementor kuMsitho weGA ngeGTM

  • Cofa uhlaziyo
  • Uya kucelwa ukuba usete imeko kwaye usete ngokungagqibekanga kwawo onke amaphepha.
  • Hlaziya i-cache yakho kunye neskripthi sakho ngoku!

Jonga kuqala ukudityaniswa kweMenenja yeTek kuGoogle

Umphathi weTag kaGoogle unendlela emnandi yokuqhagamshela kwimeko yesikhangeli kwaye kuvavanye ikhowudi yakho ukubona ukuba izinto ezihanjiswayo zithunyelwa ngokufanelekileyo na. Oku kubalulekile kuba iGoogle Analytics ayisiyiyo yexesha lokwenyani. Ungavavanya kwaye uvavanye kwaye uvavanye kwaye uyakhathazeka ngokwenene ukuba idatha ayibonisi kuGoogle Analytics ukuba awuyiqondi le nto.

Andizukubonelela ngesifundo apha ngendlela ukujonga kwangaphambili kunye nokulungisa isiphathi seTag kuGoogle… Ndiza kucinga ukuba uyazi. Ndingangenisa ifom yam kwiphepha lam lovavanyo elixhumeneyo kwaye ndibone idatha inyanzeliswa kwidatha ye-GTM njengoko kufuneka ukuba:

maleko wedatha yomphathi weGoogle

Kule meko, udidi lwalunekhowudi enzima njengeFomu, ekujolise kuko yayifom yoQhakamshelana nathi, kwaye ilebheli kukungeniswa.

KuMphathi weTag kuGoogle Cwangcisa izinto eziguqulweyo, uMsitho, iTrigger, kunye neTag

Inyathelo lokugqibela koku kukuseta uMphathi weTek kuGoogle ukuze ubambe ezo zinto zixabisekileyo kwaye uzithumele kwiTag yeGoogle Analytics eyenzelwe umcimbi. Iinkcukacha zika-Elad Levy kula manyathelo kwesinye isikhundla sakhe - Ukulandelwa kweMicimbi yesiqhelo kuMlawuli weTek kuGoogle.

Nje ukuba ezo zinto zisetelwe, uya kuba nakho ukubona Iziganeko kuVavanyo lukaGoogle!

Fumana i-Elementor Pro

Ukubhengezwa: Ndisebenzisa amakhonkco endinawo kulo lonke eli nqaku.

6 Comments

  1. 1
  2. 3
  3. 5

Ingaba ucinga ntoni?

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