Allows you to call public JS API methods when you open a site page with a specific get parameter.

Get request structure:

convead[<method>]=<type> – name of the method with its type (required parameter)

convead[properties][<name>]=<value> – object with event properties

convead[visitor_info][<field>]=<value> – visitor_info object with visitor data

The substituted variables correspond to the variables in the JS API:

<code>convead('<method>', '<type>', <properties>, <visitor_info>);

Examples of custom event calls:

<code><a href="">[event]=custom&convead[properties][key]=event_key&convead[visitor_info][email]</a><br><a href="<br>" rel="nofollow noopener noreferrer" target="_blank">[widget]=show&convead[properties][id]=123<br>[track]=disable

Analog of calling these methods via JS API:

<code>convead('event', 'custom', {key: 'event_key'}, {email: ''});<br>convead('widget', 'show', {id: 123});<br>convead('track', 'disable');

There is an updated syntax for calling multiple methods through the API URL at the same time:

<code><a href="">[widget][0][action]=show&convead[widget][0][properties][id]=1762&convead[event][1][action]=update_info&convead[event][1][visitor_info][email]</a>

Analog of calling these methods via JS API:

<code>convead('widget', 'show', {id: 1762}); convead('event', 'update_info', {}, {email: '<a href=""></a>'});

Using the URL API allows you to transfer the values of the ConveadSettings object:

<code><a href="">[disable_auto_widgets]=true&convead_settings[debug_mode]=true</a>

Analog transfer of the values via JS:

<code>ConveadSettings.disable_auto_widgets = true;<br>ConveadSettings.debug_mode = true;
Did this answer your question?