Skip to content

FLAMIXSOFTWARE/b24-lead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot

Site - https://flamix.solutions/bitrix24/integrations/site/

Install

composer require flamix/b24-lead

Usage

try {
    //If need change APP use changeSubDomain('wpapp') method
    \Flamix\Bitrix24\Lead::getInstance()->setDomain('YOUR.BITRIX24.COM')->setToken('YOUR.API.KEY')->send(['FIELDS' => ['name' => 'Roman']]);
} catch (\Exception $e) {
    $e->getMessage();
}

Switch plugin

This SDK can works with many all our "Website Integration". For default its work with general app - Site integrations. If you want switch to another module, please, youse method change changeSubDomain(). For example, if you installed "Integration with frameworks: Laravel, Symfony, Zend and Yii":

try {
    //If need change APP use changeSubDomain() method
    \Flamix\Bitrix24\Lead::getInstance()->changeSubDomain('leadframework')->setDomain('YOUR.BITRIX24.COM')->setToken('YOUR.API.KEY')->send(['FIELDS' => ['name' => 'Roman']]);
} catch (\Exception $e) {
    $e->getMessage();
}

Module domains:

  • lead - Website Integration (Default);
  • leadwp - Integration with WordPress site
  • leadopencart - Integration with a store on OpenCart
  • leadframework - Integration with frameworks: Laravel, Symfony, Zend and Yii
  • leadbitrix - Integration with a store on Bitrix
  • leadwoocommerce - Integration with a store on WooCommerce
  • leadmagento - Integration with a store on Magento
  • leadshopify - Integration with a store on Shopify

SmartUTM

When we didn't have UTM source, but have REFERER (for example, facebook.com) - we can set UTM_SOURCE=facebook.com Put this code in header sections in every page.

\Flamix\Bitrix24\SmartUTM::init();

Trace

Trace save visited pages and user devise.

\Flamix\Bitrix24\Trace::setPage('Your page title');

Trace & SmartUTM

\Flamix\Bitrix24\Trace::init('Your page title');