Skip to content

Gennady95/crm-lead-conversion-analysis

Repository files navigation

Сквозной анализ по заполненным формам из bitrix24

Система собирает заполненные формы из bitrix24, фильтруя их от лишних данных (звонков и не валидных лидов) и сверяет с продажами в 1С по определённому алгоритму.

CRM Lead Conversion Analysis

Python tool for end-to-end lead tracking from CRM requests to real sales revenue.

Description

This project performs end-to-end customer journey analysis by connecting CRM leads with actual sales data.

The script extracts leads from Bitrix24 CRM, matches them with SQL sales history and calculates conversion, revenue and customer acquisition efficiency.

Important: This project requires configured Bitrix24 API access and SQL database connection. It cannot run without replacing these integrations with your own data sources.

Business Goal

The main objective is to measure real business results generated by incoming leads.

The analysis helps answer:

  • How many leads were generated?
  • Which leads converted into customers?
  • How much revenue was generated?
  • Which sources create valuable customers?
  • Which departments convert leads better?

Features

  • Bitrix24 API integration
  • SQL database connection
  • CRM lead extraction
  • Sales history processing
  • Phone number normalization
  • Lead-to-customer matching
  • Conversion tracking
  • Revenue attribution
  • Source performance analysis
  • Location-based analytics
  • Excel report generation
  • Telegram execution notifications

Tech Stack

  • Python
  • pandas
  • NumPy
  • SQLAlchemy
  • PyMySQL
  • fast-bitrix24
  • requests
  • pyTelegramBotAPI
  • openpyxl
  • python-dotenv

How It Works

  1. Loads leads from Bitrix24 CRM

  2. Extracts:

    • lead source
    • customer contacts
    • creation date
    • business unit
  3. Loads sales history:

    • retail sales
    • service sales
  4. Matches leads with purchases by phone number

  5. Calculates:

    • converted leads
    • number of orders
    • revenue
    • sales direction
  6. Generates Excel analytics reports

Example / Demo

Input

CRM:

  • Leads
  • Customer contacts
  • Lead sources

SQL:

  • Sales transactions
  • Revenue
  • Profit

Output

Excel report:

  • Full lead history
  • Lead conversion statistics
  • Revenue attribution
  • Monthly analytics
  • Business unit performance

Use Case

This project can be used for:

  • CRM analytics
  • marketing attribution
  • sales funnel analysis
  • lead quality analysis
  • business intelligence reporting

About

Система собирает заполненные формы из bitrix24, фильтруя их от лишних данных (звонков и не валидных лидов) и сверяет с продажами в 1С по определённому алгоритму.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages