Etu esi esochi ntinye akwụkwọ Elementor na mmemme Google Analytics site na iji JQuery

Etu ị ga -esi soro nrubeisi nke Elementor na ihe omume Google Analytics

Anọ m na -arụ ọrụ na saịtị ndị ahịa WordPress n'izu ole na ole gara aga nke nwere ọtụtụ ihe mgbagwoju anya. Ha na -eji WordPress na mwekota ka ActiveCampaign maka ịzụlite ndu na a Zapier mwekota na Zendesk Ree via Ụdị Elementor. Ọ bụ nnukwu usoro… Enwere m mmasị n'ezie n'ụdị mgbanwe Elementor na anya na mmetụta.

Nzọụkwụ ikpeazụ bụ ịnye onye ahịa ahịa dashboard nyocha maka ndị ahịa site na nchịkọta Google nke nyere ha arụmọrụ ọnwa karịa ọnwa na ntinye akwụkwọ. Ha arụnyere Google Tag Manager, yabụ anyị na-ejide azụmahịa e-commerce na ọrụ nlele YouTube na saịtị ahụ.

Emere m ọtụtụ mbọ iji DOM, ihe na -akpali akpali, na ihe omume n'ime Google Tag Manager iji weghara ntinye akwụkwọ na -aga nke ọma maka Elementor mana enweghị m ihu ọma ọ bụla. Anwalere m ọtụtụ ụzọ dị iche iche iji nyochaa ibe ahụ, na -ele anya maka ozi ịga nke ọma nke ga -apụta site na AJAX ma ọ naghị arụ ọrụ. Yabụ… emere m nyocha ụfọdụ wee chọta ezigbo azịza sitere na Ndepụta Chef, akpọrọ Mpempe akwụkwọ Bulletproof Elementor na GTM.

Akwụkwọ edemede na -eji Jquery na Google Tag Manager ka ịpị Ihe nchịkọta Google Analytics mgbe etinyere ụdị nke ọma. Site na obere ndozi na otu mmezi syntax, enwere m ihe niile m chọrọ. Nke a bụ koodu:

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

Ọ mara mma nke ukwuu, na -ekiri maka nrubeisi nke ọma, wee gafere ụdị dị ka udi, the aha njedebe dị ka Action, na Submission dị ka labeelu. Site na ịme mmemme ebumnuche, ị nwere ike nwee naanị koodu a n'okpuru akwụkwọ ọ bụla ka ịdebe ntinye akwụkwọ. Yabụ… ka ị na -agbakwunye ma ọ bụ gbanwee ụdị, ị gaghị echegbu onwe gị maka imelite edemede ma ọ bụ tinye ya na ibe ọzọ.

Wụnye Ederede site na Koodu Omenala Elementor

Ọ bụrụ na ị bụ ụlọ ọrụ, m ga -akwado nnukwu nkwalite na -enweghị njedebe yana iji Elementor maka ndị ahịa gị niile. Ọ bụ ikpo okwu siri ike na ọnụọgụ ndị mmekọ na -aga n'ihu ịrị elu. Di na Nwunye ya dị ka ngwa mgbakwunye Ụdị ịkpọtụrụ DB ị nwekwara ike ịnakọta ntinye akwụkwọ anamachọihe gị niile.

Elementor Pro nwere nnukwu nhọrọ njikwa edemede wuru n'ime ya. Nke a bụ otu ị ga -esi tinye koodu gị:

Koodu Omenala Elementor

  • Na-agagharị na Elementor> Koodu Omenala
  • Aha koodu gị
  • Tọọ ọnọdụ, na nke a njedebe mkpado ahụ.
  • Debe ihe kacha mkpa ma ọ bụrụ na ị nwere ihe karịrị otu edemede ịchọrọ ịtinye ma tọọ usoro ha.

Mpempe akwụkwọ Elementor na mmemme GA site na GTM

  • Pịa mmelite
  • A ga -ajụ gị ka ịtọọ ọnọdụ ahụ wee tọọ ya na ndabara nke ibe niile.
  • Mee ka ebe nchekwa gị dị ọhụrụ ma edemede gị dị ndụ!

Gosi njikọta Njikwa Onye njikwa Google gị

Onye njikwa mkpado Google nwere usoro dị egwu maka ijikọ na ihe nchọgharị yana ịnwale koodu gị iji hụ ma a na -eziga mgbanwe ndị ahụ nke ọma. Nke a dị mkpa n'ihi na nchịkọta Google abụghị ezigbo oge. Ị nwere ike nwalee ma nwalee ma nwalee ma nwee nkụda mmụọ n'ezie na data ahụ apụtaghị na nchịkọta Google ma ọ bụrụ na ịmaghị nke a.

Agaghị m enye nkuzi ebe a ka esi eme ya hụchalụ ma mebie Onye njikwa Google Tag… Aga m eche na ị maara. Enwere m ike itinye akwụkwọ anamachọihe m na ibe nnwale ejikọrọ m wee hụ data agbagoro na data GTM dịka ọ kwesịrị ịdị:

google mkpado data oyi akwa

N'okwu a, etinyere koodu ahụ nke ọma dị ka Mpempe, ebumnuche ya bụ ụdị Kpọtụrụ anyị, akara ya bụ nrubeisi.

Na njikwa mkpado Google Mepụta mgbanwe data, ihe omume, kpalite na mkpado

Nzọụkwụ ikpeazụ na nke a bụ ịtọlite ​​Google Tag Manager ka ọ weghara mgbanwe ndị ahụ wee ziga ha na mkpado Google Analytics guzobere maka ihe omume. Elad Levy kọwara nkọwa ndị a na post ya ọzọ - Ndepụta ihe na -emenụ na njikwa mkpado Google.

Ozugbo edobere ndị ahụ, ị ​​ga -enwe ike ịhụ ihe omume na nchịkọta Google!

Nweta Elementor Pro

Ngosipụta: Ana m eji njikọ njikọta m na edemede a.

6 Comments

  1. 1
  2. 3
  3. 5

Kedu ihe ị chere?

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