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

Add a method to determine whether to register a visitor #5

Closed
mdddj opened this issue Dec 23, 2021 · 4 comments
Closed

Add a method to determine whether to register a visitor #5

mdddj opened this issue Dec 23, 2021 · 4 comments
Assignees
Labels
awaiting user input Awaiting input from the user for a query discussion

Comments

@mdddj
Copy link

mdddj commented Dec 23, 2021

image

Is there a way to determine whether the visitor function has been registered?

like this

/// 
final isReg = ZohoSalesIQ.hasRegisterVisitor(); //Determine whether the visitor has been registered.

if(isReg){
 // Unbind
}else{
    ZohoSalesIQ.registerVisitor('some id')
}

I can't implement type functions now. Sorry, my English is not very good

@Angu-G
Copy link
Contributor

Angu-G commented Dec 27, 2021

Hi @mdddj, We don't have such a method. By the way, we do this check internally on our end i.e., If the visitor is already registered with the same id, we will skip the registration flow and if the new id is passed for registration, we will unregister the previous visitor(old id) and register with the new id.
You need this method to avoid duplicate registration? If yes, we do that internally or if you have any other cases please let us know so that we shall discuss

@Angu-G Angu-G self-assigned this Dec 27, 2021
@mdddj
Copy link
Author

mdddj commented Dec 27, 2021

@Angu-G Yes, I need to make this judgment, otherwise it will make an error

@Angu-G
Copy link
Contributor

Angu-G commented Dec 27, 2021

@mdddj, So you meant there are other cases for this function! Can you please explain to us so that we could help you with that?

@Angu-G Angu-G added the awaiting user input Awaiting input from the user for a query label Dec 28, 2021
@Angu-G
Copy link
Contributor

Angu-G commented Jan 5, 2022

Hello @mdddj, We are closing this issue since there is no recent activity. You can get back to us for further queries. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting user input Awaiting input from the user for a query discussion
Projects
None yet
Development

No branches or pull requests

2 participants