Questions tagged [react-ga]

67 questions
0
votes
1 answer

React-GA + Redux v7 incompatibility issue with jest

I am using react-ga v2.5.7, for which I updated react-redux v7.0.2, and I am using jest v24.7.1 I set react-ga in testMode, and it is mocked in my jest.setup.js. But everytime I run my tests I am always encountering the same issue, most of the tests…
AKFourSeven
  • 1,305
  • 3
  • 18
  • 31
0
votes
1 answer

react-ga: Before executing "ReactGA.pageview" or "ReactGA.event", every time do I need to run "ReactGA.initialize"

Software Stack: React I am trying to get my website analytics, for this, I am using react-ga library. I set up the code, but I have confusion, do I need to run ReactGA.initialize every time before executing the command ReactGA.pageview or…
Django
  • 103
  • 10
0
votes
1 answer

React with Google Analytics, shall we truncate url in order to group by them?

I am using react-ga to approach google analytics. In order to group the pageviews pages, currently, when we send the pageview event, we truncate them. Like /article/content-name/content-id was truncated to /article. we use the pageview function…
Ron
  • 6,037
  • 4
  • 33
  • 52
0
votes
1 answer

How to get Google Analytics url param information when using react-router Redirect to switch pages

I am using redirect to go to the final page on my website. Within this redirect I feed it a bunch of url params that tell me what the user has done up to that point. The problem is that when I added Google Analytics it did not pick up on any of the…
IanBarbour
  • 91
  • 1
  • 11
0
votes
1 answer

React-ga not returning correct active page in Google Analytics Dashboard

Context: In the app, I am using react-slick to allows users to navigate through components like a carousel. (NOTE: as users navigate through the carousel, the URL for the application does not change/update; always https: //myApplicationURL.com) What…
JSzeto821
  • 55
  • 1
  • 1
  • 8
0
votes
1 answer

How to add custom dimensions in React Ga?

How to add custom dimensions in ReactGA (event)? I tried below approach : GoogleAnalytics.set({ email: 'my_email', id: 'my_id', }) but it's not working.
0
votes
2 answers

Cannot read property parentNode of undefined

i'm using react-ga from track my react app using google analytics. I'm fetching the tracking id through an API call and is returned after approximately 4 seconds. My function is this: const withTracker = (WrappedComponent, options = {}) => { const…
RamAlx
  • 6,976
  • 23
  • 58
  • 106
1 2 3 4
5