Temporarily available content

To restrict access to your links based on time, you can use proxy links by adding them to the buttons in blocks.

Step 1. To do this, add a variable in the calculator—for example, link—in which you'll store the proxy link (see example in Figure 2).

Step 2. Add a button in the block, and in the button settings, insert the variable into the URL field:

One-time links If you pass an additional parameter (other than zero) to the "proxy", "proxy_date", or "proxy_timeout" function, the link will become one-time use.

Fig. 2

On the second attempt to open the link, the user will see the following message:

Fig. 3

proxy_date() — this function takes a link as its first parameter and returns a link with click notification. The second and third parameters specify the date and time when the link will expire.

If you pass an additional parameter after the minutes (that is not zero), the link will become one-time use.

Fig. 4

After the link expires, the person will see this message when they try to open it.

Fig. 5

proxy_timeout() — this function takes a link as its parameter and returns a link with click notification. An additional parameter specifies the number of minutes the link is valid. If you pass another parameter after the minutes that is not zero, the link will become one-time use.

Fig. 6
Рис. 7

All short links can be created without a callback—that is, as classic short links. For this, there are functions with the same parameters that do not trigger a callback.

With callback
Without callback

proxy

short

proxy_timeout

short_timeout

proxy_date

short_date

Accordingly, if you need to use short links without a callback, use a variable to store the link, just like with the proxy link functions:

Fig. 8

These are regular proxy links but called "smart" because they allow passing parameters using #{}. When someone clicks such a link, the placeholders are replaced with the client’s corresponding variable values. This way, you can direct the user to the right section of the site without changing the link itself:

Fig. 9

url = proxy('https://yandex.ru/search/?clid=9582&text=salebot&lr=53&p=#{page}')

page = 0

In this example (Figure 8), we create a link with one parameter, but there can be any number of parameters.

With a well-designed funnel, you only need to update the necessary client variables, and when the client clicks the same link, they’ll be directed exactly where needed.

remove_links() — deactivates all short links sent to the client remove_one_time_links() — deactivates all one-time links sent to the client remove_timer_links() — deactivates all time-limited links sent to the client

Example of use

Fig. 10 Add the resulting link variable to the button.
Fig.11 Button settings

Live stream on the functionality:

Last updated