This is how you can implement the trafficback URL in Propush.me code. For example, if you want to redirect users after they click “Allow” on push notifications subscription window, please put the URL in the code the following way:


sdk.onPermissionAllowed(function() {
    /* this code will be executed if user clicks on Allow button */
 window.location.replace('https://google.com/search?q=Allow');
});

  

You can use the same method to install trafficback for cases when user denies subscription or is already subscribed - just put the link into the corresponding section of the code. 

Did this answer your question?