{{define "content"}}{{template "settings-start" .}}{{with .Data}}

Website & sales

The end of the funnel: who came to your websites from a link tagged with a buying signal, who booked a call, and who signed up or paid. Supermarket only reads these. Results appear on Signals.

Plausible: visits

Once a day, Supermarket reads yesterday's visitors who arrived on a link tagged with a signal's campaign (utm_campaign), by where the link was (source, medium and content). Visits are counted per signal, never per person.

{{template "key-field" (dict "F" .PlausibleKey "Set" .PlausibleSet)}}

Sites read: {{if .Sites}}{{range $i, $s := .Sites}}{{if $i}}, {{end}}{{$s}}{{end}}{{else}}none yet: add your websites (and their Plausible site, if it differs from the domain) to the profile{{end}}.

{{if .PlausibleSet}}
Checking…
{{end}} {{template "last-run" .LastPlausible}}

Stripe: sign-ups and payments

Every hour, Supermarket reads new completed checkouts and paid invoices. A checkout with nothing to pay (a trial or a free plan) counts as Signed up; money paid counts as Paid, with the amount, renewals included. Each customer is tied to a signal by the campaign their checkout carries, or else by their email: a prospect's, or one at a prospect company's domain.

{{template "key-field" (dict "F" .StripeKey "Set" .StripeSet)}}
What the shopping cart needs to do

When a visitor arrives with UTM tags on the link, the cart keeps them (in a cookie or the session) and passes them to Stripe when it creates the Checkout Session, as metadata:

metadata[utm_campaign] = the signal's campaign tag
metadata[utm_source]   = e.g. email, linkedin, x
metadata[utm_medium]   = e.g. outreach, social
metadata[utm_content]  = optional: which message or post

Without them, a payment is still counted, and tied to a signal when the payer's email belongs to a prospect.

{{if .StripeSet}}
Checking…
{{end}} {{template "last-run" .LastStripe}} {{if .Customers}} {{range .Customers}}{{end}}
CustomerCame fromProspect
{{or .Name .Email}}{{if and .Name .Email}} {{.Email}}{{end}} {{if .Campaign}}{{.Campaign}} · {{end}}{{channel .Channel}} {{if hasPrefix .Subject "stripe:"}}no{{else}}yes{{end}}
{{end}}

Cal.com: bookings

Your Core's Cal.com has no API, so bookings are read from the emails Cal.com sends you about them, in the mailbox under Settings → Email. Each new booking counts as Booked for the person who booked.

{{if .BookingFrom}}

Looking for booking emails from {{.BookingFrom}}.

{{else}}

Give Cal.com's sending address under Settings → Email to start.

{{end}}
{{end}}{{template "settings-end"}}{{end}} {{define "last-run"}}{{with .}}

Last read {{ago .At}}: {{if .Error}}{{.Error}}{{else}}{{.Detail}}{{if .Through}} Through {{.Through}}.{{end}}{{end}}

{{end}}{{end}}