All Collections
ProPush.me ENG
How to implement trafficback link in Propush.me code
How to implement trafficback link in Propush.me code
ValeriaN avatar
Written by ValeriaN
Updated over a week ago

Trafficback URL is aimed to increase profitability of your work with pushes. You can use this link to keep monetizing users after they have allowed or denied subscriptions and for many other purposes.

Please check out below to see how this works in propush.me.

1. Creation and integration trafficback URL in propush.me account 

You can create the trafficback link for a specific website or landing page:


Or you can create and set up the trafficback using our new toggle which you can find in push notifications settings. 

When you click on this toggle you receive the functionality that allows you to quickly enable trafficback zones already added to the specific website/landing page for the 4 events: allowed, denied, already subscribed, skipped.

Or you can create a new one:

The code will be automatically changed according to the event you selected.

2. Manual integration

This is how you can implement the trafficback URL in Propush.me code manually. 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 another events -  just put the link into the corresponding section of the code. 

Did this answer your question?