Maitiro Ekutevera Elementor Fomu Kuendesa muGoogle Analytics Zviitiko uchishandisa JQuery

Maitiro Ekutevera Elementor Fomu Kuendesa muGoogle Analytics Zviitiko

Ndanga ndichishanda pane yevatengi WordPress saiti kwemavhiki apfuura ayo ane akaoma mashoma kuomarara. Ivo vari kushandisa WordPress nekubatanidzwa ku ActiveCampaign yekurera inotungamira uye a Zapier kusangana ku Zendesk Tengesa Via Elementor Mafomu. Iyo yakanaka system ... kubanisira kudonhedza mushandirapamwe kune vanhu vanokumbira ruzivo uye kusundira lead kune yakakodzera mutengesi mumiriri kana akumbirwa. Ndiri kunyatso kufadzwa nefomu raElementor kuchinjika uye kutarisa uye kunzwa.

Nhanho yekupedzisira yaive yekupa iyo analytics dhibhodhi kune mutengi kuburikidza neGoogle Analytics iyo yakavapa iwo nemwedzi-pamusoro-mwedzi mashandiro pane mafomu kutumira. Ivo vane Google Tag Manager yakaiswa, saka isu tave kutotora macomputer e-commerce uye YouTube yekuona zviitiko pane ino saiti.

Ndakaita kuyedza kwakawanda kushandisa DOM, zvinokonzeresa, uye zviitiko mukati meGoogle Tag Manager kutora iyo yakabudirira fomu kuendesa yeElementor asi handina kana rombo rakanaka zvachose. Ndakaedza toni yenzira dzakasiyana dzekutarisa peji, ndichitarisa meseji yekubudirira iyo yaizobuda kuburikidza neAJAX uye yainge isiri kushanda. Saka ... ini ndakaita kutsvaga ndikatsvaga mhinduro hombe kubva kuTracking Chef, inonzi Bulletproof Elementor fomu yekutevera neGTM.

Iyo script inoshandisa jQuery uye Google Tag Manager kusundira iyo Chiitiko cheGoogle Analytics apo fomu racho rakabudirira kuendeswa. Nedzimwe diki diki uye imwe yekuvandudza syntax, ini ndaive nezvose zvandaida. Heino kodhi

<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>

Izvo zvine hunyanzvi, kutarisisa kuendesa kwakabudirira, wobva wapfuura fomu seboka, iyo zita rekuenda seChiito, uye kubvuma sechiratidzo. Nekuita iyo yakarongwa programmatic, iwe unogona kungova neiyi kodhi muzasi kwepeji rega kuti uone fomu kutumira. Saka… paunowedzera kana kugadzirisa mafomu, haufanire kunetsekana nezvekuvandudza script kana kuiwedzera kune imwe peji.

Isa Iyo Script Via Elementor Tsika Kodhi

Kana iwe uri agency, ini ndinokurudzira zvikuru iyo isina muganho kusimudzira uye kushandisa Elementor kune vese vako vatengi vako. Iyo ipuratifomu yakasimba uye huwandu hwehukama hwehukama hunoramba huchikwira. Vabatanidze nePlugin senge Bata Fomu DB uye iwe unogona zvakare kutora ese ako mafomu kutumira.

Elementor Pro ine yakanaka script manejimendi sarudzo yakavakirwa mukati. Heano maitiro aunogona kuisa kodhi yako:

Elementor Tsika Kodhi

  • Enda kune Elementor> Tsika Kodhi
  • Taura kodhi yako
  • Gadza nzvimbo, mune ino mugumo tag yemuviri.
  • Seta yakakosha kana iwe uine inopfuura imwechete script iwe yaunoda kuisa uye kumisikidza iwo marongero avo.

Elementor Fomu Kuendesa kune GA Chiitiko kuburikidza neGTM

  • Dzvanya kugadzirisa
  • Iwe unozobvunzwa kumisikidza mamiriro uye nekungozviisa kune default emapeji ese.
  • Zorodza cache yako uye script yako irarame!

Wongorora Wako Google Tag Manager Kusanganisa

Google Tag Manager ine yakanakisa mashandiro ekubatanidza kune browser browser uye kunyatso kuyedza kodhi yako kuti uone kana kana kwete misiyano iri kutumirwa nemazvo. Izvi zvakakosha nekuti Google Analytics haisi chaiyo-nguva. Unogona kuyedza uye kuyedza uye kuyedza uye kunyatso kushushikana kuti iyo data haisi kuratidza muGoogle Analytics kana iwe usina kuziva izvi.

Ini handisi kuzopa dzidziso pano yekuti ungaita sei kuongorora uye kugadzirisa Google Tag Manager… Ndichafungidzira kuti unoziva. Ini ndinogona kuendesa fomu rangu pane yangu yakabatana bvunzo peji uye ndoona iyo data yakasimudzirwa kune iyo GTM dhata sezvazvinofanira kuve iri:

google tag maneja data dhata

Mune ino kesi, chikamu chacho chakaomeswa-kodhi seFomu, chakanangwa yaive fomu Yekutibata Nayo, uye chitupa chinonzi Kuendesa.

MuGoogle Tag Manager Seta Zvimisikidza Dhata, Chiitiko, Trigger, uye Tag

Nhanho yekupedzisira pane izvi kuseta Google Tag Manager kutora izvo zvinosiyana uye kuzvitumira kuGoogle Analytics Tag yakagadzirirwa chiitiko. Elad Levy anotsanangura matanho aya mune imwe posvo - Chiitiko Chiitiko Chekutevera MuGoogle Tag Manager.

Kana izvo zvangoiswa, iwe unozogona kuona Zviitiko muGoogle Analytics!

Tora Elementor Pro

Kuzivisa: Ndiri kushandisa zvikwata zvangu zvakabatana muchinyorwa chino.

6 Comments

  1. 1
  2. 3
  3. 5

Unofungei?

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