Skip to main content

Google Tag tracking

9 hours 58 minutes ago #100000540 by askjim
Google Tag tracking was created by askjim
-- HikaShop version -- : 6.8.0
-- Joomla version -- : 6.2.0
-- PHP version -- : 8.4.27
-- Browser(s) name and version -- : Chrome 156.0

Hello,
I'm using Joomla 6.2.0, HikaShop 6.8.0 and YOOtheme Pro 5.0.53.
The HikaShop Google Analytics 4 plugin (
Code:
hikashop_ga4
) is enabled and successfully sends
Code:
view_item
events to GA4.
However, when customers add products to the basket using the AJAX Add to Cart button, no
Code:
add_to_cart
event appears in Google Tag Assistant, Chrome Network or the browser's Google data layer.
The basket updates successfully, and the HikaShop AJAX request returns the correct product information.
Could you please confirm:
  1. Does the HikaShop 6.8.0 GA4 plugin support the
    Code:
    add_to_cart
    event?
  2. If so, is any additional configuration required for AJAX Add to Cart buttons?
  3. If not, what is your recommended method for implementing GA4
    Code:
    add_to_cart
    tracking?
Many thanks.
Jim

Please Log in or Create an account to join the conversation.

6 hours 1 minute ago #100000541 by nicolas
Replied by nicolas on topic Google Tag tracking
Hi,

HikaShop's Google Analytics 4 plugin did not send any add_to_cart event so far: up to version 1.5.9 it sent view_item_list, view_item, view_cart, begin_checkout, add_shipping_info, add_payment_info and purchase, so nothing was missing in your configuration.

We have added it: version 1.6.0 of the plugin, available now, sends an add_to_cart event each time a customer adds a product with an AJAX add to cart button, on the listings and on the product page, with the product's code and name, the quantity added, its unit price, the currency, its brand and its categories. It goes through the same gtag code as the other events, so it shows in Tag Assistant and in the dataLayer right after the click, and it follows your cookie consent setting like the rest of the plugin.

To get it, download the plugin from www.hikashop.com/marketplace/product/108...egration-google.html (or from your account, or Joomla's updater when it shows the update) and install it over the current one; your settings are kept. No other setting is needed.

If after the update the event still does not appear when you click the button, please tell us which button you use (a HikaShop add to cart button, or one built with YOOtheme Pro's builder) so that we can check how it calls the cart.

Please Log in or Create an account to join the conversation.

4 hours 34 minutes ago #100000548 by askjim
Replied by askjim on topic Google Tag tracking
Thank you Nicolas, I will have a look at this tomorrow.

Regard

Jim

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum