Yuav Ua Li Cas Txheeb Cov Ntawv Elementor Xa Ntawv hauv Google Analytics Txheej Txheem siv JQuery

Yuav Ua Li Cas Txheeb Tus Qauv Elementor Xa Ntawv hauv Google Analytics Txheej Txheem

Kuv tau ua haujlwm ntawm tus neeg siv khoom WordPress site rau ob peb lub asthiv dhau los uas muaj qee qhov nyuaj. Lawv siv WordPress nrog kev koom ua ke rau ActiveCampaign rau kev txhawb nqa cov thawj coj thiab a Zapier kev koom ua ke rau Zendesk Muag Khoom ntawm Cov Elementor Forms. Nws yog ib txoj hauv kev zoo… ncaws tawm cov phiaj los nqis tes rau cov tib neeg uas thov cov ntaub ntawv thiab thawb tus coj mus rau tus sawv cev muag khoom tsim nyog thaum thov. Kuv txaus siab heev rau Elementor daim ntawv hloov pauv thiab saib thiab hnov.

Kauj ruam kawg yog muab kev tshuaj ntsuam xyuas rau cov neeg siv khoom ntawm Google Analytics uas tau muab rau lawv nrog kev ua tiav ib hlis dhau ib hlis ntawm kev xa daim ntawv. Lawv tau teeb tsa Google Tag Manager, yog li peb twb tau txais kev lag luam e-lag luam thiab YouTube saib kev ua haujlwm ntawm lub xaib.

Kuv tau ua ntau qhov kev sim siv DOM, ua rau pom, thiab cov xwm txheej hauv Google Tag Tus Thawj Coj txhawm rau txhawm rau ua tiav daim ntawv foos xa mus rau Elementor tab sis tsis muaj hmoo hlo li. Kuv tau sim ntau txoj hauv kev sib txawv los tshuaj xyuas nplooj ntawv, saib cov lus ua tiav uas yuav tshwm sim ntawm AJAX thiab nws tsuas yog tsis ua haujlwm. Yog li ... Kuv tau tshawb nrhiav qee qhov kev pom zoo los ntawm Tus Kws Ua Haujlwm Saib Xyuas, hu ua Bulletproof Elementor daim ntawv taug qab nrog GTM.

Tsab ntawv siv jQuery thiab Google Tag Tus Thawj Coj los thawb Kev tshwm sim Google Analytics thaum daim ntawv ua tiav xa. Nrog qee qhov kev kho me me thiab ib qho kev txhim kho syntax, Kuv muaj txhua yam kuv xav tau. Nov yog txoj cai:

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

Nws zoo nkauj heev, saib rau qhov ua tiav xa, tom qab ntawd dhau mus daim ntawv raws li pawg, cov lub hom phiaj lub npe as Action, thiab kev mloog lus raws li daim ntawv lo. Los ntawm kev ua cov phiaj xwm phiaj xwm, koj tuaj yeem yooj yim muaj cov lej no hauv kab ntawv ntawm txhua nplooj ntawv txhawm rau soj ntsuam daim ntawv xa tawm. Yog li ... thaum koj ntxiv lossis hloov kho cov ntawv, koj tsis tas yuav txhawj xeeb txog kev hloov kho tsab ntawv lossis ntxiv nws mus rau lwm nplooj ntawv.

Nruab Tsab Ntawv Ntawm Elementor Custom Code

Yog tias koj yog ib lub koomhaum, Kuv xav kom pom zoo qhov hloov pauv tsis txwv thiab siv Elementor rau txhua tus ntawm koj cov neeg siv khoom. Nws yog lub platform ruaj khov thiab cov naj npawb ntawm cov koom tes koom ua ke txuas ntxiv mus saum ntuj ceeb tsheej. Ua ke nrog Plugin zoo li Hu rau Daim Ntawv DB thiab koj tseem tuaj yeem sau tag nrho koj daim ntawv xa tuaj.

Tsim Hauv Pro muaj qhov kev tswj hwm tsab ntawv zoo tsim los rau hauv. Nov yog qhov koj tuaj yeem nkag mus rau koj cov cai:

Elementor Custom Code

  • Mus rau Elementor> Kev Cai Cai
  • Npe koj tus lej
  • Teem qhov chaw nyob, qhov no yog qhov kawg lub cev tag.
  • Teem ib qho tseem ceeb yog tias koj muaj ntau dua ib tsab ntawv koj xav ntxig thiab teeb tsa lawv.

Elementor Form Xa mus rau GA Event ntawm GTM

  • Nyem hloov tshiab
  • Koj yuav raug hais kom teeb tsa qhov xwm txheej thiab tsuas yog teeb tsa nws mus rau qhov tsis zoo ntawm txhua nplooj ntawv.
  • Hloov kho koj lub cache thiab koj tsab ntawv nyob!

Saib ua ntej Koj li Google Tag Manager Kev Sib Koom

Google Tag Tus Thawj Coj muaj lub tswv yim zoo rau kev txuas mus rau qhov browser piv txwv thiab ua tiag sim koj cov cai txhawm rau saib seb puas muaj qhov hloov pauv tau raug xa mus. Qhov no yog qhov tseem ceeb vim tias Google Analytics tsis yog lub sijhawm tiag tiag. Koj tuaj yeem sim thiab sim thiab sim thiab poob siab tiag tiag uas cov ntaub ntawv tsis tshwm nyob hauv Google Analytics yog tias koj tsis paub qhov no.

Kuv yuav tsis muab kev qhia ntawm no yuav ua li cas saib ua ntej thiab debug Google Tag Manager… Kuv yuav xav tias koj paub. Kuv tuaj yeem xa kuv daim ntawv ntawm kuv nplooj ntawv txuas txuas thiab pom cov ntaub ntawv thawb mus rau GTM cov ntaub ntawv raws li nws xav tau:

google tag tus thawj tswj cov ntaub ntawv txheej

Hauv qhov no, pawg tau nyuaj-coded raws li Daim Ntawv, lub hom phiaj yog Daim Ntawv Tiv Tauj Peb, thiab daim ntawv lo yog xa tawm.

Hauv Google Tus Thawj Saib Xyuas Haujlwm Teeb Cov Ntaub Ntawv Hloov Pauv, Txheej Txheem, Ua rau, thiab Tag

Kauj ruam kawg ntawm qhov no yog teeb tsa Google Tag Tus Thawj Coj kom ntes cov kev hloov pauv no thiab xa lawv mus rau Google Analytics Tag teeb tsa rau ib qho xwm txheej. Elad Levy qhia meej cov kauj ruam no hauv nws lwm txoj haujlwm - Kev Pom Zoo Ib Ntus Hauv Google Tag Tus Thawj Coj.

Thaum cov ntawd tau teeb tsa, koj yuav tuaj yeem pom Cov Txheej Txheem hauv Google Analytics!

Tau Elementor Pro

Kev tshaj tawm: Kuv siv kuv cov kev sib koom tes thoob plaws hauv cov kab lus.

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.