Loading...
Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleWhich variables you can use


Переменная

Значение

{city}City name
{visit}Visit number
{referrer}Referrer page
{landingPage}Landing page
{source}Source (marker)
{utmSource}utm_source tag value
{utmMedium}utm_medium tag value
{utmCampaign}utm_campaign tag value
{utmTerm}utm_term tag value
{utmContent}utm_content tag value
{callee}dialed number

{roistatParam1}

roistat_param1 tag value
{roistatParam2}roistat_param2 tag value
{roistatParam3}roistat_param3 tag value
{roistatParam4}roistat_param4 tag value
{roistatParam5}roistat_param5 tag value



Expand
titleПример использования переменныхExample of using the variables


Code Block
languagephp
$roistatData = array( 
	'title' => 'New deal {visit}', //Add the visit number to the title of the deal
	'name' => 'Client's name {visit}', //Add the visit number to the client's name
	'comment' => 'utm_source: {utmSource}, utm_medium: {utmMedium}, utm_campaign: {utmCampaign}', //Transmit the utm-tags to the comment of the deal 
	'fields' => array( 
		'1276733' => '{city}', // Save the city of the visitor in the additional field 1276733
		'tags' => 'Тег1, {utmSource}, {utmMedium}, {utmCampaign}', // Save the values of utm-tags in tags
	), 
); 
file_get_contents("https://cloud.roistat.com/api/proxy/1.0/leads/add?" . http_build_query($roistatData));


...