-
GA4 purchase event is duplicated on first purchase only
Can you guide me on resolving an issue related to Google Analytics 4 (GA4) on my WordPress website? I noticed that the purchase event is being triggered twice for the first purchase by the same user, despite using the gtag test script for sending the event. The peculiar bit is that for subsequent purchases by the same user, the event is triggered only once, which is as expected.
For your reference, I’ve observed something odd about the ga_session_id and ga_session_number – they appear twice for the first purchase. In contrast, other parameters such as currency and page_title appear only once.
Here are some steps I took: testing with a custom script without any GTM involvement, inspecting for duplicate gtag scripts in the website’s source code, and even disabling all plugins and switching to the default WordPress theme. Unfortunately, none of these steps has helped.
What I am seeking are suggestions that might help resolve this issue to ensure that the GA4 purchase event is triggered only once for all purchases, irrespective of whether they are the user’s first purchase or subsequent ones. Could you possibly help with this issue?
Log in to reply.