Connect HubSpot or Pipedrive attribution
Connect a dedicated customer-owned OAuth app, map first-party visitor IDs and read verified deal outcomes.
Last updated November 29, 2026
What these connections do
Open Site Tracking → CRM → Native HubSpot and Pipedrive attribution. These two native connectors read current deal state from the provider API after an authenticated notification or a reconciliation request. They append snapshots to AEO Goal’s existing CRM attribution ledger. AEO Goal is not a CRM: it does not manage contacts, pipelines, deals, follow-up tasks or customer communications. CRM opportunity values are separate from recorded purchases and advertising costs.
Your website must copy the consenting first-party AEO Goal visitor ID into a deal text field in the CRM. Do this through your own form/CRM integration. These connectors do not infer visitor identity from email or CRM contact IDs and do not populate that field for you. The visitor must have retained Site Tracking activity in this brand. A deal must have exactly one unambiguous contact association in HubSpot, or a canonical person association in Pipedrive.
Prepare a dedicated app
Use a customer-owned OAuth app dedicated to attribution. Publishing credentials are never reused. Client secrets, access tokens, refresh tokens and Pipedrive’s separate webhook password are encrypted at rest. The status API never returns these secrets. The connector rejects extra grants instead of silently retaining write access. Configure only these permissions:
| Provider | Required permissions |
|---|---|
| HubSpot | oauth, crm.objects.deals.read, crm.objects.contacts.read, crm.schemas.deals.read |
| Pipedrive | base, deals:read |
Use account-level OAuth access that can read the deal property and pipeline catalogs. User-level HubSpot apps that cannot read pipelines cannot complete mapping. Create/install the app through the provider’s supported developer platform and complete any required app approval or private distribution steps. Provider availability and approval are acceptance gates, not something AEO Goal can grant. New HubSpot setup uses a project-based OAuth app; do not rely on creating a legacy private app.
- Select Set up HubSpot or Set up Pipedrive.
- Enter the dedicated app’s client ID and client secret.
- Enter the exact expected HubSpot portal ID or Pipedrive company ID. The returned OAuth account must match this value before the connection activates.
- For Pipedrive, choose a separate strong Pipedrive webhook password of at least 24 characters. Retain your own copy for webhook configuration.
- Choose Prepare HubSpot authorization or Prepare Pipedrive authorization. Copy the displayed OAuth callback into your provider app’s allowed redirect URLs.
- Follow Authorize read access and approve only the required permissions. Return with the same signed-in AEO Goal user and active brand.
OAuth state is single-use, bound to that user, brand and connection generation, and expires after ten minutes. Preparing a replacement immediately disconnects the previous local connection, cancels its queued work and clears its mapping. If authorization fails, check the expected account and permissions, prepare again and use the new authorization link. Access tokens refresh through the provider’s OAuth API. No secrets are placed in provider request URLs.
Map the visitor field and stages
Select Map HubSpot attribution or Map Pipedrive attribution, choose the deal text field containing the visitor ID, and explicitly select the pipeline/stage outcomes to record. Unmapped stages are ignored. No field or stage is guessed from its label.
HubSpot keys are pipeline:stage. The canonical deal’s closed/won flags must
agree with the chosen outcome. Pipedrive keys are pipeline:stage:status; the
same pipeline stage can contain open, won and lost deals. Open maps to open,
won maps to won, and lost can map to lost or explicitly to abandoned. An open
deal can never become won merely because a stage label says so.
Choose Save CRM attribution mapping, then reconcile current deals. Mapping changes cancel queued work using the earlier mapping. Existing ledger snapshots remain; new canonical snapshots reflect the configured mapping. A changed visitor field does not erase a previously recorded visitor association. Use the existing visitor erasure process for deletion requests.
Configure provider-authenticated webhooks
Copy the exact webhook URL displayed after authorization. It includes the public Site Tracking key for routing; that key is not webhook authentication. Use HTTPS, no redirect, and no added query parameters.
HubSpot
In your customer-owned app, configure deal webhook subscriptions using the
classic deal notification payload (legacyCrmObjects on the project platform).
Supported types are deal.creation, deal.propertyChange, deal.deletion and
deal.associationChange. For property changes, include the mapped visitor field,
dealstage, pipeline, amount and deal_currency_code as appropriate.
Use this same OAuth app so its signing secret and verified app ID match.
HubSpot’s v3 signature authenticates the exact configured public URL, raw body, HTTP method and timestamp, with a five-minute timestamp check. The documented legacy v1 deal signature is also supported. A supplied invalid v3 signature never falls back to v1. Only the documented deal payload is accepted; unrelated object notifications are rejected. Each delivery can contain up to 100 notifications.
Pipedrive
Create a general v2 webhook in Pipedrive’s webhook settings for deal create,
change and delete events (*.deal). Configure HTTP Basic username aeogoal
and the separate password supplied during setup. Do not use the OAuth client
secret or an API token as this password. The verified company ID must match
meta.company_id, and notifications must use meta.version: "2.0".
Webhook authentication only permits queueing a deal identifier. Notification values are never trusted as financial values or won statuses. Each queued read uses the separate OAuth connection to fetch the current canonical deal. Deletion or an unavailable deal does not invent an abandoned/lost outcome.
Reconcile and inspect status
Reconcile deals queues a scan of deals updated in the last 1, 7 or 30 days. The default automated reconciliation lookback is seven days. Pipedrive scans both ordinary and archived deal collections. HubSpot search excludes deleted/archived objects. Reconciliation recovers current snapshots, not historical stage changes that occurred between reads, and does not establish complete historical CRM data. HubSpot windows with 10,000 or more matches fail clearly; use a smaller lookback.
Notifications and scan cursors are durable database jobs. Repeated notifications and unchanged canonical snapshots deduplicate independently. Jobs use five-minute leases; transient failures back off and retry up to six attempts. Permanent mapping/data failures are reported as skipped or failed. Up to 2,000 active jobs can wait per connection. Queue-full deliveries return a retryable error; jobs and pagination progress commit transactionally. There is no guarantee that a provider will redeliver indefinitely, so reconciliation remains necessary.
Status shows authenticated notification time, successful canonical read time, job counts, and the last completed deal enumeration. Enumeration completion can precede the individual deal reads. Correct missing field/contact/stage data in the CRM, then reconcile again. Operational jobs retain only CRM identifiers, minimal scan cursors, digests and sanitized errors, not raw webhook bodies or contact profiles. Finished jobs expire after 30 days when maintenance runs. Ledger snapshots follow existing Site Tracking retention and erasure. Native reads require retained first-party activity. Visitor erasure also stages brand-scoped digests of existing CRM event IDs before deleting snapshots. Generic webhook retries and unchanged native canonical snapshots check those digests before writing, even when the same cookie visits again. A new event can still be recorded; suppression does not permanently ban a visitor ID.
Reconnect or disconnect
Reconnect prepares new credentials, cancels earlier queued reads and clears mapping; authorize and map again afterward. Disconnect attribution revokes local access, clears stored secrets and cancels pending work. It retains existing outcomes and does not remotely uninstall the app. Remove the app grant and webhook in the provider to complete provider-side revocation. Also remove or clear the CRM’s visitor field when fulfilling erasure requests.
The Generic CRM webhook and GoHighLevel workflows section remains separate and continues to accept the existing provider-neutral payload and bearer secret. Do not reuse that secret for native provider authentication.
Acceptance and operations
Live acceptance requires the registered migration and routers, worker dispatch and maintenance schedules, valid encryption configuration, a customer-approved app installation, real webhook authentication, and a canonical deal with a real consenting visitor field. Local automated tests mock external provider boundaries; they do not prove provider approval, actual account access or deployed delivery. Use bounded worker concurrency and monitor retry/failed/skipped counts. Back up credentials using the existing encrypted database backup process; preserve the application encryption key under the existing secret management process.
Official references: HubSpot OAuth v3, HubSpot request validation, Pipedrive OAuth, Pipedrive webhooks v2, Pipedrive deals API.