I have a client site that is experiencing a rogue JS redirect that is causing issues with analytics tracking, as these tools rely on an accurate document.referrer. This redirect is interesting in that it is only for new users, and it redirects the user back to the same page they originally navigated to.
The client is not able to tell me what tools they have added or removed lately, so I am stuck trying to identify for them what piece of JS on their site is causing this. Is there any good way to identify what is causing this redirect?
Things I've tried:
- Searching the site source for instances of 'window.location'
- Searching all directly utilized JS on the site for 'window.location'
Any help would be appreciated!