0

I recently changed to use browserHistory from hashHistory in a react app. The get site control feedback widget used to work without any problem with the different urls in the app.But its not working after the change. E.g at www.xxx.com, the widget works but at www.xxx.com/yyy, it does not work.

When I inspect the element, i can see the scripts needed to load the widget. I am wondering if it is something related to browswerHistory thing. Would highly appreciate, if anyone has any idea about it.

Bikash
  • 41
  • 8

2 Answers2

0

it's not very clear what goes wrong but I guess you need to tell widgets on which page your app is.

Take a look at API docs:

Tracking pages in Single Page Apps

And if you are using React router you need to listen to route changes:

How to listen to route changes in react router v4?

  • I actually found a solution. I had to make a small change in the setting of getsitecontrol dashboard. I added * on the target url after slash (/). www.xyz.com/* – Bikash Dec 04 '17 at 17:00
  • thank you @Alexander Rusanov. You gave me some hints to look into the dashboar :) – Bikash Dec 04 '17 at 17:10
0

I actually found a solution. Its actually getsitecontrol that is making not to display in other pagers. I had to make a small change in the setting of getsitecontrol dashboard. I added * on the target url after slash (/). www.xyz.com/* It had nothing to do with browserHistory as I thought before.

Bikash
  • 41
  • 8