-
Notifications
You must be signed in to change notification settings - Fork 15
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
Confusing documentation, setAttributes not working #28
Comments
Well I got it to set the Attributes now. One attribute is consistently not being set even though the objects that I pass is valid. All attributes apart from the email are not displayed in the mobile app, but only in the web interface, which is not helpful at all. And sometimes tawk throws an error INVALID_EMAIL (also nowhere documented), even though the email is definitely valid. The email is "[email protected]" where I replaced the original domain with abc. Maybe some regex is not handling the .store domain? Just a guess. |
Any solution to this yet ? |
Maybe it was a propagation issue. During development it would not work at all. But in production the API now works for about 80% of visitors. Took a few days to get up to that number. Weird. I know use import |
@felixmpaulus Im trying to use the Here is my hash code:
|
@andreisaikouski A bit late but here is the code I use which works fine:
|
Hello everyone, the setAttributes was async call in our backend thats why it takes a while before it appears in your dashboard. If you data is already prepared before the widget loads you can use the visitor API instead it will be realtime to update the customer data |
When using setAttributes(), the attributes are not set and the error UNAUTHORIZED_API_CALL is passed to the callback function. It could be caused by a wrong hash, but I am not sure.
Issue 1: That error code is nowhere to be found in the docs, so I have no idea what it means.
Issue 2: The documentation has conflicting information about calculating the hash:
"hash is a combination of userId + site API key using HMAC SHA256" and "The hash is server side generated HMAC using SHA256, the user’s email and your site’s API key."
Issue 3: The how-to-use.md is stilling using
useRef={}
instead ofref={}
(another issue mentioned this)Could someone please give me input on my React code and maybe point me in the right direction? I would really appreciate that.
The hash comes out like this:
32422195d1615c8c23d46ff496e23b032aa71df7b6b85d97a8f832121991dfbc
Secure Mode is enabled.
Secret is stored on the frontend only for development purposes.
I am not even able to find the request going out, so I have no idea how to continue debugging this.
Thank you! :)
The text was updated successfully, but these errors were encountered: