Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTM4WP - Category product links take seconds to open #349

Open
filippo1996 opened this issue May 14, 2024 · 5 comments
Open

GTM4WP - Category product links take seconds to open #349

filippo1996 opened this issue May 14, 2024 · 5 comments

Comments

@filippo1996
Copy link

filippo1996 commented May 14, 2024

Hi, I have a similar problem to this: https://wordpress.org/support/topic/product-links-not-working/
but in my case the problem concerns the list of products in the categories, when I try to open a product it takes seconds before it processes the page loading, removing this tag or disabling the
Track e-commerce works normally. You can try it yourself: https://www.forap.it/categoria-prodotto/abbigliamento-polizia-locale/

It is very important that the problem is resolved because the user perceives that the site may not work if it takes this time. the problem occurs on both desktop and mobile.

@jurijc
Copy link

jurijc commented May 27, 2024

Hi, @filippo1996 I have found solution for this problem that I have also noticed.
You need to copy trigger Event - Ecommerce Events GA4 in gtm and remove from Event name select_item|
Then set this trigger for remarketing tag.
This is bug because on item click this event is sent and adds delay. Should be fixed @duracelltomi
image

@duracelltomi
Copy link
Owner

The root cause of this behavior is usually something different in your GTM container or on your website.

When someone clicks on a product in a product list, GTM4WP stops the browser from navigating the user to the product detail page so that it can signal GTM to fire tags related to the select_item event. Now two events can happen:
#1 GTM can fire all related tags quickly and GTM4WP can redirect the user to the product detail page quickly
#2 Something slows down the process, in that case GTM4WP instructs GTM to only wait for 2000ms and just THEN will the user redirected to the product detail page

I am managing some Woo sites where case #2 almost never happens, clicks work quickly with GTM4WP.

So there does not seem to be a single "fix" for that as it could be many factors that causes case #2 to happen.
What I could do is to give more control over the timeout, this way, you could set a lower value by accepting less captured data for the select_item event.

@gmmedia
Copy link

gmmedia commented Aug 31, 2024

Thank you so much! This fixed my problem.

Hi, @filippo1996 I have found solution for this problem that I have also noticed. You need to copy trigger Event - Ecommerce Events GA4 in gtm and remove from Event name select_item| Then set this trigger for remarketing tag. This is bug because on item click this event is sent and adds delay. Should be fixed @duracelltomi image

@filippo1996
Copy link
Author

filippo1996 commented Sep 9, 2024

La causa principale di questo comportamento è solitamente dovuta a qualcosa di diverso nel contenitore GTM o nel sito web.

Quando qualcuno clicca su un prodotto in un elenco di prodotti, GTM4WP impedisce al browser di indirizzare l'utente alla pagina dei dettagli del prodotto in modo che possa segnalare a GTM di attivare i tag correlati all'evento select_item. Ora possono verificarsi due eventi: #1 GTM può attivare rapidamente tutti i tag correlati e GTM4WP può reindirizzare rapidamente l'utente alla pagina dei dettagli del prodotto #2 Qualcosa rallenta il processo, in quel caso GTM4WP ordina a GTM di attendere solo 2000 ms e SOLO ALLORA l'utente verrà reindirizzato alla pagina dei dettagli del prodotto

Gestisco alcuni siti Woo in cui il caso n. 2 non si verifica quasi mai, i clic funzionano rapidamente con GTM4WP.

Quindi non sembra esserci una singola "soluzione" per questo, poiché potrebbero esserci molti fattori che causano il verificarsi del caso n . 2. Ciò che potrei fare è dare più controllo sul timeout, in questo modo, potresti impostare un valore inferiore accettando meno dati catturati per l'evento select_item.

Hi @duracelltomi , I'm using Hello Elementor as a theme with the Elementor plugin. I've also tried disabling the other plugins but the problem persists. I don't understand what this could be due to.

@Axos11
Copy link

Axos11 commented Nov 13, 2024

Hello @duracelltomi ,
first of all thanks for the amazing plugin!

I encounter the issue, that I have the full 2000ms second delay when the consent is not givven via cmp (I use truendo with consent mode implemented). That immediatlely goes to basically nothing as soon as the consent is granted.

Any ideas on how to fix that? I basically only have the cmp tag and the google tags (ga4 gads remarketing..) in the container as of now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants