Pro Feature

Integrations

Push attribution data to any webhook destination, or read it directly from your own code using the public PHP API.

Webhook integrations

Pro includes a webhook integration that fires on conversion events. Configure a webhook endpoint URL under Attribution → Integrations. When a conversion is recorded, the plugin sends a POST request to the configured endpoint with a JSON payload containing the session's channel, source, conversion type, and value. This can be used to push data to CRM systems, spreadsheets, Slack notifications, or any other service that accepts webhook payloads.

Webhook payload

Each webhook POST contains:

  • channel — the attributed channel (e.g. AI Referrer, Organic Search)
  • source — the referring domain
  • conversion_type — WooCommerce, CF7, comment, or your custom label
  • value — real value if recorded, 0 if not
  • currency — currency code if a real value was recorded
  • timestamp — ISO 8601 timestamp of the conversion event

Public PHP API

The public PHP API is available in both Free and Pro, and does not require a conversion event. Two functions are available anywhere in your theme or plugins:

  • cqip_attr_get_channel() — returns the current session's attributed channel as a string
  • cqip_attr_get_source() — returns the referring domain as a string

These functions return an empty string if no session is currently active. They are safe to call on any page load.

Using the API with page builders

Both API functions work within any theme or plugin code that runs on the server side. They can be called from page builder PHP snippets, custom post type templates, conditional logic in contact forms, or any other server-side hook. They are not available client-side in JavaScript.

Integrations questions