kacperduras / tracksmart-prestashop

Module to enhanced tracking for Google Analytics 4 (via Google Tag Manager)
GNU General Public License v3.0
7 stars 9 forks source link

GTM: problem with trigger #1

Open pciechanowski opened 3 years ago

pciechanowski commented 3 years ago

Witaj dobry czlowieku!, dwa problemy: 1) Błąd instalacji modułu - patrz config.xml vs nazwa katalogu pobranego z repo to tracksmart-prestashop a w configu jest tracksmart (ja sobie zmieniłem nazwę, ale może być ktoś mniej kumaty technicznie) 2) Dodaje kod od gtm, ale nie odbiera prawidłowo danych po stronie kontenera gtm. Dane do datalayera wysyła, ale nie odpala tagów i nie wysyła danych. Chyba szablon kontenera wymaga poprawki.

Hi, got some problems with module and it's addons 1) Problem with installation - look at config.xml - name of directory downloaded by git is tracksmart vs tracksmart-prestashop (i managed to fix this by renaming folder but for others it may be a problem) creates gtm containter but does not send data 2) I have a problem with gtm container. It looks like plugin work - debuger says there is some data in datalayer but it does not receive on the gtm side. because i can't see any fired tags.

Xelance-com commented 3 years ago

Try using DOM Ready instead of Page view as a trigger

kacperduras commented 3 years ago

Hej @pciechanowski, dokończmy rozmowę po angielsku - dla zachowania spójności :)

Ok, so:

  1. For download module, please - use releases. Travis CI packs automatically content to ZIP without your action.
  2. Can you test advice from @xelancegit?
pciechanowski commented 3 years ago

Może być w języku angielskim :)

Using Dom Ready Kinda works. Kinda - it works for fb pixel (but i needed to insert pixel identifier in tag instead using constant and {{}} and fb pixel show median session length 0.5s). As for ga4 - not working (or i'm just dumb - but i added a stream in data streams and use g-xxxxx identifier in gtm ga4 configuration tag and in debugger i still cannot see this ga4 config tag fired. I think that problem may be due to gtm inserting method (not the gtm container code printed in header but loaded through js).