Skip to main content

All Questions

1 vote
1 answer
113 views

GoogleTagManager from '@next/third-parties/google' not firing at all

I have this crazy issue with setting up GoogleTagManager in my NextJs project and I can't figure out what the issue is. This is my RootLayout component: "use client" import { Amplify } from &...
JustANoob's user avatar
0 votes
1 answer
99 views

Google Tag Manager - dataLayer has previous value of items for new Event (Next JS App)

I have two Event of GA on same page. First Event works on page view that is view_promotion and second is select_promotion . for view_promotion, Iam sending data like => const items = newItems.map((...
Dipu Roy's user avatar
0 votes
0 answers
795 views

Should I use GTM container id or measurement id in react using ga4?

I need to gather analytics on my website with google analytics 4. Using enhanced measurement I catch all button clicks by creating triggers with "Click element matches CSS selector [data-...
Dmitry Bochok's user avatar
1 vote
2 answers
357 views

GA4 - Back Button Vs. <-Back Link

I want to track the number of times a user taps/clicks the <- Back Link compared to users who use native browser Back Button. I'm fairly new to Google Analytics, and GTM. I'm using React. My ...
Barrard's user avatar
  • 2,063
0 votes
0 answers
144 views

Google Tag manager data from events is not visiable in ga4 explorer

I'v configured container for my dev and prod webpages. So the problem is, that my data from events (say view_promotion) is not set in explorer (event 48 hours have passed) from localhost (dev). NOTE: ...
Alex Belz's user avatar
1 vote
0 answers
520 views

How do i secure my google tag manager id for my domain

I have integrated google tag manager with my SPA application (ReactJS) const tagManagerArgs = { gtmId: 'GTM-000000' } TagManager.initialize(tagManagerArgs) I believe by inspecting the source ...
coolguy's user avatar
  • 7,954
0 votes
0 answers
94 views

Seperate External and Internal Traffic using Google tag Manager

I am trying to seperate different type of traffic for my website based on domain name. For seperating based on domain name I am trying to use react google tag manager. I added react gtm code in app....
alif's user avatar
  • 133
2 votes
1 answer
911 views

gtag: why does google analytics collects data even if not granted

So I'm making a GDPR, CCPA... compliant Next.js App with cookie consent and preferences and need to implement Google Anayltics with Google Tag Manager with Consent. _app.js: ... <Script src={`https:...
helenacoding2's user avatar
1 vote
0 answers
1k views

How can I stop deleted Google Analytics Cookies from returning?

so I'm coding a cookie-component for a react-website. And I managed to set the cookies, and also to delete them. But I recognized that whenever I switch to another route, Google Analytics sets a ...
Cioccoluna's user avatar
1 vote
1 answer
1k views

Difference google analytics object and dataLayer in React.js

I have in my .env fiel the field REACT_APP_MEASUREMENT_ID=G-XXXXXXXX I am using react-gtm-module and Google Tag Manager 4 (and still also Universal analytics) and I initialize in my App.js: ...
MarcL's user avatar
  • 3,603
4 votes
2 answers
7k views

Cookie “_ga” will be soon rejected because it has the “SameSite” attribute set to “None” without the “secure” attribute

I have added Google Tag manager to my react project, with the help of react-gtm-module After successfully adding it, I see some warning in consoles which are below like - Cookie “_ga” will be soon ...
RRR uzumaki's user avatar
  • 1,328
0 votes
3 answers
10k views

Setting Google Tag Manager consent with react-gtm-module

In my React SPA, I use npm module react-gtm-module to connect it to GTM. I can send events, using this syntax: window.dataLayer.push({ event: 'calc_price_btn' }) but I am not sure if and how ...
Adam Libuša's user avatar
5 votes
1 answer
3k views

Partytown implementation with React.js

I was trying to implement partytown in a React application but the partytown documentation is not clear and I am unable to find a good resource for partytown implementation. Please guide on how to ...
Sahil Aggarwal's user avatar
0 votes
2 answers
887 views

Google analytics script fails to load within page with 500 error code

Google analytics script fails to load with 500 error code on the website however if the link is opened in a new tab it's working fine. Checked on MacOS BigSur Chrome, Firefox, Safari in normal and ...
Azar Safarov's user avatar
2 votes
1 answer
1k views

GA4 Google Analytics event doesn't appear as conversion

I'm using Google Tag Manager(react-gtm-module) package) to push custom events to Google Analytics. In code i do it like this: GTM.dataLayer({ dataLayer: { event: 'Custom event' } }); Then, in GTM i ...
Kitty Captain's user avatar

15 30 50 per page