Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Not working for GA4 #493

Open
isuruamantha opened this issue May 29, 2021 · 22 comments
Open

Not working for GA4 #493

isuruamantha opened this issue May 29, 2021 · 22 comments

Comments

@isuruamantha
Copy link

Admire all the hard work done for this project. Please update the project to support the new GA4.

Otherwise, users need to toggle the Create a Universal Analytics property toggle button when creating a property in Google Analytics. Then you will get two properties, the old one and the new one. Use the old one (Starting with UA-XXXXXX)

@ffumarola
Copy link

Also interested in this!

@krishnaTORQUE
Copy link

I am also facing this issue

@johnnyoshika
Copy link

I'm also interested in this

@aircooledjacob
Copy link

yes please

@sonck201
Copy link

sonck201 commented Jun 5, 2021

I'm also interested in this

@jabarihunt
Copy link

Considering GA4 is now default, this would be a great addition.

@codler
Copy link

codler commented Jun 16, 2021

I have rewritten react-ga to support the new Google Analytics 4 in react-ga4 https://github.com/PriceRunner/react-ga4

@isharadilshan
Copy link

I have rewritten react-ga to support the new Google Analytics 4 in react-ga4 https://github.com/PriceRunner/react-ga4

I have used this, it is not supported for custom events yet, right?

@codler
Copy link

codler commented Jun 16, 2021

@isharadilshan Custom event is supported

@maxmert
Copy link

maxmert commented Jun 18, 2021

@codler Thanks for your work! I assume that it suppose to be backwards compatible. Is the .pageview() supported (I have issues and didn't find it in the code)?

@codler
Copy link

codler commented Jun 18, 2021

@maxmert I added the alias method .pageview() now. Previously you could call by .send('pageview')

@ckarras11
Copy link

@codler does this package support both GA4 and UA trackers, or would sending events to multiple trackers need to be all GA4 or UA?

@codler
Copy link

codler commented Jun 21, 2021

@ckarras11 Yes, you can either use GA-XXX or UA-XXX.

Multiple trackers are not supported. But it may be possible by instantiate manually import { GA4 } from 'react-ga4/ga4'; const otherInstanceReactGA = new GA4(); . Though I have not tested that.

@codler
Copy link

codler commented Jun 23, 2021

@ckarras11 Multiple trackers are planned to be supported in autumn

@ckarras11
Copy link

Awsome, thank you for the timeline! And great work 👍

@codler
Copy link

codler commented Oct 5, 2021

@ckarras11 Multiple trackers are now supported.

@ckarras11
Copy link

That's amazing, I will look into switching then, thanks for keeping me updated and for working on this 👍

@gaupoit
Copy link

gaupoit commented Feb 23, 2022

Thanks for the great work.

@mariela-plaza
Copy link

Thank you so much for working in this! It is truly necessary with the new migration that most of us will have to do to Google Analytics 4

@BearCooder
Copy link

Hey @codler do you still maintain the new Google Analytics 4 in react-ga4 https://github.com/PriceRunner/react-ga4? Is it possible to update peer deps for react 18? I tried it with Typescript and getting conflicts

@codler
Copy link

codler commented Jul 31, 2022

@BearCooder I don't know what you mean. It doesn't have any dependencies nor peerDependencies.

@BearCooder
Copy link

@codler sorry you are right I ran into this issue and did not notice it was another package - as I added some simultaneosuly in my package json - that caused the error, my bad sorry!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests