OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Purchase event going off 3 times in Google Tag Assistant

  • Thread starter Thread starter Tushy
  • Start date Start date
T

Tushy

Guest
I'm managing a website that was created and is being hosted on Shoptet and I'm facing a problem that when I "preview" the tags in Google Tag Assistant, the purchase event is being fired 3 times instead of 1, never more, never less, and all of them have unique IDs and finally all 3 purchases are being sent to both GA4 and GAds and that's a problem. The event triggers when a "purchase" event occurs through DataLayer.

In-between the purchase events there are always the same 2 events. After the first purchase event there is "Set"; API Call: gtag("set", {currency: "CZK"}) event happening. After second purchase event there is "fbloaded"; API Call: dataLayer.push({fbpixel: "loaded", event: "fbloaded", gtm.uniqueEventId: 11}) event happening, the succession of the events can be seen in the picture: fired events.

From what I understand the "fbloaded" event has something to do with Facebook pixel and there is a Facebook account linked to the website to measure conversions. I had tried unlinking Facebook but the event still happened.

There is also an option to link a GA4 account to the website through admin page - the same as in Wordpress or in other platforms and I have that linked. I had tried unlinking that and in-return no events were tracked.

I have also checked multiple times if I don't have some "doubled" tags or some exceptions that would result in this behavior.

I also checked the full DataLayer code. In the first purchase event the code has the most lines, in the second it has less and finally in the last one there is the least amount of lines of code. I reached the conclusion that the last one doesn't have that many lines because of facebook and that it doesn't need that much information but I don't know whether that's correct or not.

I would like to know whether there is a way how to join these 3 events together or get rid of them or do something so that there is only one event being tracked and sent to GA4 and GAds?

<p>I'm managing a website that was created and is being hosted on Shoptet and I'm facing a problem that when I "preview" the tags in Google Tag Assistant, the purchase event is being fired 3 times instead of 1, never more, never less, and all of them have unique IDs and finally all 3 purchases are being sent to both GA4 and GAds and that's a problem. The event triggers when a "purchase" event occurs through DataLayer.</p>
<p>In-between the purchase events there are always the same 2 events. After the first purchase event there is "Set"; API Call: <code>gtag("set", {currency: "CZK"})</code> event happening. After second purchase event there is "fbloaded"; API Call: <code>dataLayer.push({fbpixel: "loaded", event: "fbloaded", gtm.uniqueEventId: 11})</code> event happening, the succession of the events can be seen in the picture: <a href="https://i.sstatic.net/7AYTiDeK.png" rel="nofollow noreferrer">fired events</a>.</p>
<p>From what I understand the "fbloaded" event has something to do with Facebook pixel and there is a Facebook account linked to the website to measure conversions. I had tried unlinking Facebook but the event still happened.</p>
<p>There is also an option to link a GA4 account to the website through admin page - the same as in Wordpress or in other platforms and I have that linked. I had tried unlinking that and in-return no events were tracked.</p>
<p>I have also checked multiple times if I don't have some "doubled" tags or some exceptions that would result in this behavior.</p>
<p>I also checked the full DataLayer code. In the first purchase event the code has the most lines, in the second it has less and finally in the last one there is the least amount of lines of code. I reached the conclusion that the last one doesn't have that many lines because of facebook and that it doesn't need that much information but I don't know whether that's correct or not.</p>
<p>I would like to know whether there is a way how to join these 3 events together or get rid of them or do something so that there is only one event being tracked and sent to GA4 and GAds?</p>
 

Latest posts

H
Replies
0
Views
1
haifisch123
H
A
Replies
0
Views
1
Adrian-Mihai Enache
A
H
Replies
0
Views
1
Hür Doğan ÜNLÜ
H
Top