-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Adding option to add Reverse Proxy. #563
Comments
yesssss pleeaaase...... Half of our traffic doesnt get recorded which is super frustrating... |
I took a stab at this in our codebase.. I can re-route the /collect calls with something like this, but I can't seem to intercept the https://www.clarity.ms/tag call which is required to start the /collect calls. Abandoning for now. Just mentioning it to show interest in this ticket.
|
An alternative way is to use the npm package Conversely, if you were to do a custom inline tag of NPM Configuration Approach: |
I thought the npm package |
I'm using the npm package approach myself and have hardcoded the necessary values (works for now), I did take a look at using Regex to extract the configuration JSON from However, your use case of modifying the upload parameter would be less hacky ;) as you would just be replacing
But I wouldn't recommend it - because the script coming back from that service is bound to change, and so could the parameters and version of clarity-js returned as well. |
Good to know, thanks for the detailed info. Let me try it out and see what I can share here. |
It seems Mautic and Piwik are our only options because most of the visitors have adblockers. |
I tried proxying and it worked but it seems the collect endpoint takes the IP address of the proxy as the 'location' for the user session instead |
Have you tried setting |
Yup, didn't work |
How did you proxy it? You and I seem to describe opposite problems (see my code above) |
You can rewrite all clarity URLs to another domain name and just forward the call to the original URL. Alas, there is no use since it will give the wrong location on the clarity side |
Adding option to add Reverse Proxy.
The text was updated successfully, but these errors were encountered: