Incomplete Purchase journey and Checkout journey

Created on 6 November 2023, 11 months ago
Updated 3 April 2024, 6 months ago

I would like to measure Drupal Commerce purchases and journeys.
Yesterday I've successful installed the module (Google Tag 2.0.2 on Drupal 9.5.11, Commerce 8.x-2.36) and made a test purchase.
On the /admin/config/services/google-tag page all events are enabled included: Add payment info, Purchase (Commerce), Add shipping info, Begin checkout, Add to cart.

Today I can see in Google Analytics (GA4) in the Ecommerce purchases:
- Items viewed: 4 (OK)
- Items added to chart: 1 (OK)
- Items purchased: 1 (OK)
- Item revenue: 1,52 usd (OK)

But on the Purchase journey and checkout journey tabs things are not so bright:

Purchase journey:
Step 3 - add to cart
Step 4 - begin checkout
Step 5 - Purchase
These steps all show zero values. The most interesting is that the "Step 5 - purchase" show zero because as I mentioned on the "Ecommerce purchases" tab I've seen a purchased item.
So as I understand my setup measures events related to a product but not measures the events related to the shopping in a broader sense.

Checkout journey:
Similar problems as we seen on Purchase journey tab. These steps show zero:
Step 2 - add shipping
Step 3 - add payment
Step 4 - purchase

Could you please provide some hint where should I look for the solution?
Should the module measure (send events to GA) these events related to checkout and purchase journey with the appropriate module settings or are these events not implemented yet? Need more setting customizations?

Screenshoots attached.

Thank you

✨ Feature request
Status

Active

Version

2.0

Component

Documentation

Created by

πŸ‡­πŸ‡ΊHungary kepesv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kepesv
  • πŸ‡ΊπŸ‡ΈUnited States g.paluch

    It's likely not a module issue. If you can confirm that your dataLayer sends data in the console, it is likely a GA threshold, meaning your site doesn't produce enough data for GA. You can change this in GA in Settings>Data Collection and Modification>Data Collection by disabling
    "Include Google signals in reporting identity."

  • Status changed to Needs review 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States g.paluch
  • πŸ‡­πŸ‡ΊHungary kepesv

    Many thanks for Your response.
    Google signals data collection wasn't activated yet (so there was no "Include Google signals in reporting identity" switch).
    Now I've turned on Google signals data collection. I'll check it a few days later.

  • Status changed to Active 9 months ago
  • πŸ‡¨πŸ‡­Switzerland berdir Switzerland

    Add payment info and shipping are currently empty placeholders that are not implemented, so it's not surprising that nothing shows up there.

    I'll likely have a look at that soon as we probably need this too.

  • Assigned to durifal
  • πŸ‡ΈπŸ‡°Slovakia durifal

    I am working on the patch to support data for payment and shipping info.

  • Issue was unassigned.
  • πŸ‡ΈπŸ‡°Slovakia durifal

    I have just found out that the checkout process on the project is too custom to create universal patch :-(

  • πŸ‡ΊπŸ‡ΈUnited States rszrama

    (I'm marking this and another issue with a "Deprecate Commerce GTM" tag. These are issues that fill gaps for us to formally recommend closing that module and migrating sites to this one.)

Production build 0.71.5 2024