Question:
After clicking a custom call button, is there any way to check if a user made a call or if they pressed cancel when prompted?
Product:
Wix Editor
What are you trying to achieve:
I implemented firing a Pixel when a call button is clicked (please view code below). On iPhone and Android, the user is prompted with two options: make a call or cancel. Is there any way to check if a user made the call or if they pressed cancel? I only want to fire a pixel if a call is actually made.
What have you already tried:
Please view the attached image to see the code I have tried.
I’m not sure it’s possible since the user is no longer within the confines of the site, so the chances are you probably can’t track their activity outside of the site. @Pratham would you say this is accurate?
Sidenote: It’s best to copy and paste the code and format as follows to add it as a code block
```
export function button_click() {
}
```
Yes, that is true.
Determining if a call was made successfully or cancelled directly from a web page is not possible using standard HTML, CSS, or JavaScript.
The reason for this is that the phone app is a completely separate application and the webpage has no control over its actions or outcomes.
1 Like
Amazing! Thanks for the clarification 
Thank you everyone, I appreciate the quick response!
1 Like