Wexlyn
Back to the docs

CRM

Connecting HubSpot

Connect one or more HubSpot portals, what Wexlyn reads from each, and how contacts, deals and meetings become people, stages, sales and calls.

Wexlyn reads contacts, deals and meetings from your HubSpot portal and ties each of them to the ad click that produced the person. Nothing is written back to HubSpot: the app asks for read access only (contacts and deals).

Connect a portal

  1. Open Settings → Integrations → HubSpot and press Connect a portal (or Connect with HubSpot).
  2. HubSpot asks which account to connect and shows the two read scopes. Choose the portal and approve.
  3. You land back on the HubSpot page with the portal listed. Press Settings on the row to review what it does, and Sync now when you want the existing contacts, deals and the last 180 days of meetings imported. Nothing is pulled until you ask.

An agency connects as many portals as it manages; each one has its own row, name, tag and rules.

What each portal does

  • Only meetings created after you connected a portal become calls; to bring in the last 180 days of earlier meetings as well, switch on Import meetings created before connecting on the portal's Settings tab. Meetings created after connecting are always tracked, including ones scheduled weeks ahead.

Every portal has four tabs.

Settings. The integration name shown in Wexlyn; the integration tag every person the portal touches gets (default !hubspot-<portal>, so reports and the CRM can be filtered to it); and three switches:

  • Contacts become people. A contact created in HubSpot becomes a person in Wexlyn with its lifecycle stage and lead status. Off: only people Wexlyn already knows (from the tracking script, a form or another integration) are updated.
  • Meetings become calls. Meetings of the types switched on under Meetings land in CRM → Calls and on the person's journey. The HubSpot outcome (completed, no-show, canceled, rescheduled) updates the same call.
  • Closed-won deals become sales. A deal moved to a closed-won stage with an amount becomes a sale for that amount on its close date, credited to the person's first source. Keep it off when a connected payment processor already records the money.

Lead stage rules. Each rule moves the person to a Wexlyn stage when any of its events happens: a lifecycle stage (lead, marketing qualified lead, customer…), a lead status (new, in progress, connected…), a deal pipeline stage, deal closed won or lost, a meeting booked, completed, no-show or canceled, or contact created. Rules run top to bottom. Stages feed reports, conversion events and the CRM, and the account-wide rules under Settings → Lead stages still apply on top.

Sale configuration. The currency a closed-won deal is recorded in: taken from the deal with a default (for portals with multiple currencies), the account's inbound currency, or a fixed one for this portal. Amounts are converted to your reporting currency at that day's rate.

Meetings. Which meeting types count as calls (every meeting by default). Types appear as meetings arrive or after Sync now.

How events arrive

  • Within seconds: HubSpot sends contact created, lifecycle stage changed, lead status changed, deal created, deal stage changed and deal amount changed to Wexlyn through the Wexlyn app's webhook. Every delivery is signed by HubSpot and verified before it is processed.
  • Every hour: deals and meetings changed in the last three days are re-read, so a delivery that never arrived still lands.
  • On request: Sync now reads every contact and deal and the last 180 days of meetings.

Events only carry the record id, so Wexlyn reads the contact, deal or meeting back from HubSpot before it is processed. A deal or meeting needs an associated contact with an email or phone to be attributed.

Data shared with Wexlyn

HubSpot objectProperties readUsed for
Contactsemail, phone, mobile phone, first and last name, lifecycle stage, lead status, create datePeople, matching to ad clicks, lead stage rules
Dealsname, amount, currency, stage, pipeline, close date, closed won / lost, associated contactSales, lead stage rules
Meetingstitle, start and end time, outcome, meeting type, associated contactCalls, call stage rules
Deal pipelinespipeline and stage namesThe rule builder's stage list

Wexlyn writes nothing to HubSpot. Disconnecting a portal stops all reads at once; people, sales and calls already recorded stay in Wexlyn. Tokens are stored encrypted and refresh themselves; HubSpot's token expiry never needs a reconnect.

Sending HubSpot outcomes to ad platforms

Stages set by the rules, calls and closed-won sales feed every ad platform's Conversions tab like any other Wexlyn event, so Meta and Google can optimise on qualified leads, booked meetings and revenue rather than form fills. See Integrations for the destination setup.

Troubleshooting

  • The portal shows no events: open a contact in HubSpot and change its lead status; the row's last-event time updates within a minute. If it does not, disconnect and connect the portal again so HubSpot re-registers the app.
  • A deal did not become a sale: the deal has no associated contact, the contact has no email or phone, the stage is not a closed-won stage of its pipeline, or the amount is empty. The webhook inbox on the HubSpot page says which.
  • Sales counted twice: the same revenue also reaches Wexlyn through a payment processor connection. Switch off "Closed-won deals become sales" on the portal.
  • Pipelines could not be read: the portal was connected before deals access was granted. Disconnect and connect it again.