Hi there! Excited to be joining the community. Ap...
# support
b
Hi there! Excited to be joining the community. Apologies if this topic has already been addressed, but I have an issue when calling
rudderanalytics.track()
. In my Google Tag Manager destination any events that I call via the track call are being push twice to the data layer, with a few seconds delay between each
s
Hey There! đŸ‘‹ Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
q
Welcome @big-art-65238 ! Can you share some sample payloads, data that you see in GTM, and how you are instrumenting the track() call? I see that you have 2 GTM destinations in your web app, do you see the same behavior in both or is it specific to one particular destination?
b
Hi @quiet-wolf-72320 Here are some screenshots of testing. Right now I don't have any track calls triggering from my webflow page, so I am just using the console. Steps: 1. I trigger
rudderanalytics.track("test_event")
from the console 2. In the GTM debugger the "test_event" appears twice 3. The events are almost identical except the 2nd event has a dataLayer variable added called
eventModel
q
@big-art-65238 Which version of JS SDK you are using?
I am looking at your web app and event counts in the source and destination tabs are exactly the same
b
Copy code
{name: "RudderLabs JavaScript SDK", namespace: "com.rudderlabs.javascript", version: "2.22.3"}
h
Hi @big-art-65238, try disabling one GTM destination and test. Might be happening because you have 2 GTM configuration.
b
I only have 1 GTM connected for that source, but I also have GA4 connected to the source also.
Could it be that both destinations are manipulating the same data layer?
q
Ideally, GA4 should not manipulate anything in GTM, let us dig in a bit more
b
Now I have another issue, that since 1 day 0 events are being sent to GA4 from my Rudderstacks sources. Even though when I check the GA4 debugger it shows that events are firing
I am testing whether firing GA4 through GTM (via rudderstack) will fix the issue rather than using the GA4 destination directly
q
For GA4, can you check if you have enabled debug mode in Web App. You will not see any event in
GA4
when
debug mode
is
enabled
from the
web app
.
b
@quiet-wolf-72320 is this the setting you are referring to?
I don't see in Web App anywhere?
q
that’s the one but I see it is already disabled
b
Do you by any chance have a history on your end whether another user might have enabled it in the UI?
q
Yeah, we have experienced it with other users. if you search this channel, you will see some threads with similar behaviour
b
I mean if you can see in my Rudderstack account, whether that setting was ever on? Perhaps you are tracking history changes on these settings?
q
Not sure if I can see the audit log for free tier, we do have this capability with enterprise customers where customers can track the audit logs in the UI itself
b
Also is it normal that the GA4 & GTM events are quite slow to load on the page? For me they are taking more than 5 seconds.. so if a user would quickly change pages these page views wouldn't be recorded
@quiet-wolf-72320 are you sure that Google Ads & Google Tag Manager destinations are not interfering with each other? It looks like 2 separate events are being emitted for the same event
q
Let me check further on this with the team. I see both the destinations are connected in device mode but what you send to GA4 should not duplicate anything in GTM (if you are not sending the same event from GA4 to GTM in some other way)
b
@quiet-wolf-72320 just for the team to check.. we also have Google Ads connected via Device Mode also
m
Hey, @big-art-65238 Can you please try to disable Google Ads and/or GA4 connected to the same source and see if the records are still getting duplicated in GTM.?
Hey @big-art-65238 This is due to your GA4 being connected to the same source and have the same GTM tag. We replicated the issue and found it out. That is why you were getting an extra parameter as well