Question

All pageviews showing up as one url

  • 22 April 2024
  • 1 reply
  • 11 views

I’m trying to set up Heap for my company  and I’ve run into an issue that I can’t get to the bottom of.

 

We are running a React based web app that has many unique routes, but the data we see looks like this:
 

Even though when I go to the visual labling tool, it seems to understand it’s on a specific route, as it offers the correct path for any given page:
 

We are using React version 18.2 and React-Router version 5.2, if that matters in any way. Not sure what other data may be relevant.

What can cause this? Is there some Heap settings I have to tweak? Is there something I need to look at with our configuration? My impression was that as long as unique URLs are there Heap would pick them up.

Thanks!


1 reply

Managed to figure it out. Heap treats everyting after `#` as a separate part of the URL, the hash, which is what it technically is. Some useful info here:

 

If you add Group by: Hash to the report, you actually get usable data:
 

 

Reply