All Questions
6 questions
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:
...
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 ...
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 ...
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 ...
1
vote
1
answer
820
views
React - Why document title does not update for Google Analytics?
I initialized google tag manager by using the below code.
import TagManager from 'react-gtm-module';
const tagManagerArgs = {
gtmId: 'GTM-TLDWCL3'
}
TagManager.initialize(tagManagerArgs);
I set ...
0
votes
2
answers
2k
views
Do I need to add GTM initializing for every pages?
Do I need to add GTM initializing(the following code) for every page?
Or Do I just need to add that at only the app.js file?
import TagManager from 'react-gtm-module'
const tagManagerArgs = {
...