Skip to content
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

request: support of proxy domain for web #96

Closed
abhushanaj opened this issue Dec 9, 2022 · 5 comments
Closed

request: support of proxy domain for web #96

abhushanaj opened this issue Dec 9, 2022 · 5 comments

Comments

@abhushanaj
Copy link

Hi Clevertap Team,

I wanted to confirm if web SDK supports a way to provide an option for a proxy domain on web SDK, similar to ios SDK's

I was not able to find the option on docs , so wanted if there is a way to achieve this.

@abhushanaj abhushanaj changed the title doubt: support of proxy domain for web request: support of proxy domain for web Dec 12, 2022
@sinhaayush7
Copy link
Contributor

Hi @abhu-A-J . We have a support for Proxy Domain. You can read about it more over here under Basic Initialisation Section- https://github.com/CleverTap/clevertap-web-sdk#readme

@abhushanaj
Copy link
Author

abhushanaj commented Dec 22, 2022

Hi @abhu-A-J . We have a support for Proxy Domain. You can read about it more over here under Basic Initialisation Section- https://github.com/CleverTap/clevertap-web-sdk#readme

Hello @sinhaayush7 we use inline scripts directly over web-sdk, could you recommend the solution to that. The above link suggests only for web SDK (npm package). Thank you for the response.

Edit: Looking around the codebase, I think this is the right way to set if using inline scripts?

var clevertap = {event:[], profile:[], account:[], onUserLogin:[], notifications:[], privacy:[], targetDomain: 'PROXY_DOMAIN'};
clevertap.account.push({"id": "${clevertapAccountId}"});
clevertap.privacy.push({optOut: false}); 
clevertap.privacy.push({useIP: true});

@sinhaayush7
Copy link
Contributor

sinhaayush7 commented Dec 23, 2022

hey @abhu-A-J this looks right. Does this solve your issue?

@abhushanaj
Copy link
Author

abhushanaj commented Dec 23, 2022

hey @abhu-A-J this looks right. Does this solve your issue?

Hey @sinhaayush7 , thanks!!!

I can see some warning/information by turning on logger sessionStorage['WZRK_D']='' which shows these messages and no requests are being made. Any idea on what can be causing these????
Screenshot 2022-12-23 at 4 45 43 PM

@abhushanaj
Copy link
Author

@sinhaayush7 this is resolved per v1.3.5.

Thanks for the help, I will be marking the issues as resolved, and if in future the problem occurs again, I will open up the discussion again.

Thanks for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants