Link Shortening Service#
Description#
The functionality of the service:
replacing long links in the message text with short ones;
link matching storage;
redirecting from a short link to a long one;
collecting traffic statistics.
Links are shortened for the following types of messages:
SMS (see Parameters);
Viber (see Parameters);
Push (see Request Parameters);
VK (see Request Parameters);
WhatsApp (see Request Parameters).
Service Operation#
When a long link is detected in the message, a new link is formed - the domain http://kr4.me/ is inserted at the beginning of the new link and a unique UID is added, which length can be from 3 to 8 characters. An example of a link after an abbreviation: http://kr4.me/EQiCREB.
After the messages are delivered, when subscribers click on a short link, the link shortening service will identify the corresponding long link and redirect.
Clicks on each link will be recorded in the Platform statistics.
Service Setup#
To enable the Service, the following data must be provided to the Technical Support:
amount of characters after which the link must be shortened. For example, if the link is shortened by more than 26 characters, then the link https://rapporto.ru/ will be transmitted to the subscriber unchanged, and the link https://rapporto.ru/company/o_platforme_rapporto/ will be shortened, for example http://kr4.me/QEiCRE/;
amount of characters in the UID that is added after the domain. This parameter affects the number of unique links that can be generated. For example, with a length of UID = 8 characters, about 281 trillion unique links can be generated;
to clarify the necessity for forming of unique links for each subscriber. This parameter affects the traffic statistics. In the case of a single link, the total traffic statistics for all subscribers will be shown;
the number of days after which an inactive link is removed if there have been no clicks on it;
the number of days after which an inactive link is removed, even if there have been clicks on it (link lifetime ).
Shortening Links when Sending Cascading Messages#
If Cascading Message Sending are configured for the REST client, then the same requirements are met for the sent messages as for single ones:
when the Service is enabled, links are shortened automatically for all cascading messages;
the shortenLinks parameter is used to control link shortening for messages. If the parameter is not passed, the links in the message are shortened;
the shortenLinks parameter must be specified in the message block for each cascading message.