A client leaves if they can't quickly get in touch. Manager busy, order form fails — leads vanish. Callback powered by CoMagic solves the problem: automatic callback in 30 seconds and transparent analytics for every call — source, UTM tags, how many times reached. We implement CoMagic turnkey: from widget installation to deep CRM and BI integration. Below, we dive into technical details and compare with a custom PBX. Our CoMagic integration service includes callback widget installation, call tracking setup, CRM integration, and custom webhooks—all for improved call analytics and telephony savings of $2,000–$5,000 per month.
CoMagic is more effective than a custom PBX
A custom PBX requires weeks of development and maintenance, while CoMagic goes live in a day. Conversion to callback using the widget grows by an average of 25% compared to a regular form. CoMagic launches a callback 5 times faster than typical custom PBX: the client receives the call in 30 seconds. Analytics of UTM tags and call recording come out of the box — no coding needed. For a custom solution, you'd have to implement everything from scratch and ensure 99.9% SLA, which requires significant investment. According to CoMagic documentation, the average connection time does not exceed 30 seconds.
Increasing call conversion with CoMagic
The callback widget detects when a visitor is ready to call and prompts them to enter their number. Within 30 seconds, the system connects the client to the manager. This increases inquiries by 20–40% compared to a regular order form. Additionally, CoMagic records conversations and detects emotional tone — data can be used for sales training. In one project (an electronics online store), call conversion increased by 87% after implementation, and missed calls dropped from 35% to 8%. The average savings on missed calls are substantial, often over $2,000 per month for mid-sized businesses.
CRM integration requirements
For standard CRMs (amoCRM, Bitrix24), just add an API key in CoMagic settings. Call data (number, duration, UTM) immediately appears in the deal card. If the CRM is custom, we implement webhooks; on call completion, CoMagic sends a POST request with JSON to your endpoint. We also configure two-way synchronization: a call from CRM initiates a callback via CoMagic.
Technical details: from widget to API
Installing the widget on the site is straightforward. Add the script to <head>:
Widget installation code
<script type="text/javascript"> var _comagic_data = { id: 'YOUR_COMAGIC_ID' }; (function(a,b,c,d){a[b]=a[b]||function(){(a[b].q=a[b].q||[]).push(arguments)}; var e=c.createElement(d);e.async=1;e.src='//cdn.comagic.ru/modules/app/v2/app.js'; c.getElementsByTagName('head')[0].appendChild(e)})(window,'comagic',document,'script'); </script> For customization, use the API — hide the widget on certain pages, pass user data:
// Hide/show widget comagic('widget', 'hide'); comagic('widget', 'show'); // Pass visitor data comagic('visitor', { name: user.name, email: user.email, phone: user.phone }); CoMagic provides a REST API for report export and webhooks. Example request for calls in the last hour:
API call example
$response = Http::withToken(env('COMAGIC_API_TOKEN')) ->post('https://dataapi.comagic.ru/v2.0/', [ 'method' => 'get.calls_report', 'params' => [ 'user_id' => env('COMAGIC_USER_ID'), 'date_from' => now()->subHour()->format('Y-m-d H:i:s'), 'date_till' => now()->format('Y-m-d H:i:s'), 'fields' => ['id', 'start_time', 'caller_number', 'utm_source', 'duration'] ] ]); Configuring CoMagic webhooks
When a call ends, CoMagic sends a POST request to your specified endpoint. Example PHP handler:
Webhook handler code
// Get data from CoMagic $payload = json_decode(file_get_contents('php://input'), true); if ($payload['event'] === 'call_ended') { // Save call in your CRM $callData = [ 'phone' => $payload['caller_number'], 'duration' => $payload['duration'], 'utm_source' => $payload['utm_source'] ?? '', 'record_url' => $payload['record_url'] ?? '', ]; // Send to CRM $crm->createCall($callData); } Which is better: CoMagic or custom PBX?
| Criterion | CoMagic (ready service) | Custom PBX |
|---|---|---|
| Time to launch | 1 day (5x faster) | 2–4 weeks |
| Call analytics | Built-in, UTM, recording | Must be written from scratch |
| CRM integration | Ready (amoCRM, Bitrix24) | Via API |
| Total cost of ownership | Fixed tariff from $99/month | Development + maintenance |
| Reliability | 99.9% SLA | Depends on infrastructure |
| Telephony savings | Up to $5,000/month | None |
What are the key metrics improvements?
| Metric | Before integration | After integration |
|---|---|---|
| Call conversion | 1.5% | 2.8% (+87%) |
| Time to first call | 2 minutes | 30 seconds (4x faster) |
| Missed call rate | 35% | 8% (77% reduction) |
| Source attribution accuracy | no data | 100% (UTM + call tracking) |
Data based on 50+ projects by our engineers.
Process: from audit to deployment
- Audit current telephony — check which numbers are used, how routing is configured.
- Design integration — choose scenario: simple widget, callback with dynamic number, CRM integration.
- Implementation — install script, configure API, write webhooks if needed.
- Testing — verify call routing, recording, data transfer to CRM.
- Deployment — go live, set up monitoring.
Timeline and cost
Basic integration (widget + call tracking) — from 1 day. Extended (with CRM and webhooks) — from 3 days. CoMagic tariff starts at $99/month. Cost is calculated individually: depends on number of phone numbers, CRM complexity, and need for custom reports. Contact us for a free consultation.
Checklist: what's included
- [ ] Install callback widget on all pages
- [ ] Configure dynamic number for different traffic sources
- [ ] Integrate with CRM (amoCRM/Bitrix24/custom)
- [ ] Set up webhooks for call data to external systems
- [ ] Train managers on CoMagic dashboard
- [ ] Testing and operational guarantee (7 days support)
Our engineers have 5+ years of CoMagic implementation experience, with 50+ projects completed. We provide a warranty on all work and documentation. For more on call tracking, see Wikipedia article on Call tracking. Detailed API documentation is available at CoMagic developer docs.







