# Google Analytics 4 select\_item event

**URL:** <https://forum.mergado.com/t/google-analytics-4-select-item-event/1033>\
**Category:** Mergado Pack WooCommerce\
**Tags:** woocommerce\
**Created:** [August 7, 2024, 9:05am UTC](https://forum.mergado.com/t/google-analytics-4-select-item-event/1033 "2024-08-07T09:05:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![honza.kopecky95](https://forum.mergado.com/user_avatar/forum.mergado.com/honza.kopecky95/32/1250_2.png) [@honza.kopecky95](https://forum.mergado.com/u/honza.kopecky95)\
**Post date:** [August 7, 2024, 9:05am UTC](https://forum.mergado.com/t/google-analytics-4-select-item-event/1033/1 "2024-08-07T09:05:34Z")

</div>

Hello there,

we noticed that Mergado Pack for Woocommerce is sending the select\_item event to GA4 which is a nice feature but it seems that this event is sent when the product page is rendered. I checked the source code and this is done when the HTTP Referrer is part of the website.

I am afraid the timing here is not the ideal because according to the documentation ([[GA4] Recommended events - Analytics Help](https://support.google.com/analytics/answer/9267735?sjid=13053969978024953931-EU#online-sales)), the event should be sent when a product is selected. But given the current implementation, the event is recorder much later.

Would it be possible to improve tracking of this event, so it complies with the GA4 documentation?

Thanks,  
Honza

---

<div class="post-metadata">

**Author:** ![robin.fuksa](https://forum.mergado.com/user_avatar/forum.mergado.com/robin.fuksa/32/1312_2.png) [@robin.fuksa](https://forum.mergado.com/u/robin.fuksa)\
**Post date:** [August 13, 2024, 7:39am UTC](https://forum.mergado.com/t/google-analytics-4-select-item-event/1033/2 "2024-08-13T07:39:56Z")

</div>

Hello,

Thank you for reaching out to our support team. First of all, we apologize for the delayed response to your question. My response here will explain why the integration is designed this way, rather than providing an exact procedure to resolve the issue.

The implementation is indeed done in the manner you are proposing. Currently, there is a situation where **view\_item** is triggered first, followed by **select\_item**. Ideally, this should happen in the reverse order. We will swap this sequence without major complications.

The general integration for Mergado PACK is functional for the majority of customers. This means that overriding it so that the event is sent before the redirect is possible, but it would cause issues for customers using **custom links** without a standard WooCommerce class. The same applies to customers with their own list of products not using the default WooCommerce loops.

The official definition is somewhat vague on this matter. Does selecting an item mean ticking it or clicking it? The menu and list can also be interpreted as any place on the page.

At this moment, we can only think of one other improvement / extension. If the current implementation does not suit your needs, we can add switches for individual events (on/off), allowing everyone to implement their specific use case. Would this be a suitable solution for you?

Best regards  
Mergado PACK team

---

<div class="post-metadata">

**Author:** ![honza.kopecky95](https://forum.mergado.com/user_avatar/forum.mergado.com/honza.kopecky95/32/1250_2.png) [@honza.kopecky95](https://forum.mergado.com/u/honza.kopecky95)\
**Post date:** [August 13, 2024, 9:29am UTC](https://forum.mergado.com/t/google-analytics-4-select-item-event/1033/3 "2024-08-13T09:29:45Z")

</div>

Hello Robin,

thanks for your reply. I understand your point of view and the argument that any customization could easily break the tracking of this event.

I think we will just accept the current behaviour for now. Although the switches sound like a good idea in general since some customers may want to “block” tracking of some events.

Thanks for your support!  
Honza

---

<div class="post-metadata">

**Author:** ![robin.fuksa](https://forum.mergado.com/user_avatar/forum.mergado.com/robin.fuksa/32/1312_2.png) [@robin.fuksa](https://forum.mergado.com/u/robin.fuksa)\
**Post date:** [November 13, 2024, 9:34am UTC](https://forum.mergado.com/t/google-analytics-4-select-item-event/1033/4 "2024-11-13T09:34:33Z")

</div>

Hello Honza,

in latest version of Mergado Pack we’ve added toggle option for provided events so that individual events can be enabled or disabled independently. This allows users to implement their own specific use cases.

Read full article here:

> [@\[RELEASE\] Mergado Pack v4.0.1 for WooCommerce](https://forum.mergado.com/t/release-mergado-pack-v4-0-1-for-woocommerce/1084):
>
> Version of plugin: 4.0.1 Release date: 11/11/2024 Requires: WooCommerce Minimal PHP: 7.1+ We are excited to announce the release of a new major version of the Mergado Pack plugin! This version brings a host of new features, fixes, and improvements. tadawarning The main change involves the configuration of advertising systems—Google (GAds, GUA, GTM), Facebook, Glami, and Biano pixel. There has been an update in the VAT processing within the product price settings. All events now follow …

If you encounter any issues or unexpected functionality, please don’t hesitate to let us know.

Best regards  
Mergado PACK team

---

<div class="post-metadata">

**Author:** ![honza.kopecky95](https://forum.mergado.com/user_avatar/forum.mergado.com/honza.kopecky95/32/1250_2.png) [@honza.kopecky95](https://forum.mergado.com/u/honza.kopecky95)\
**Post date:** [November 13, 2024, 10:22am UTC](https://forum.mergado.com/t/google-analytics-4-select-item-event/1033/5 "2024-11-13T10:22:05Z")

</div>

Hi Robin,

thank you very much for the update. The checkboxes work great!

Thank you for helping us get our conversions tracking perfect!  
Honza
