Connectors

/

Shopify

/

Attribute Shopify orders to a Constant Contact campaign
Report
Cross-Connector

See whether Constant Contact clicks turned into Shopify orders

For email marketers who want to know if a Constant Contact campaign drove Shopify sales, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Attribute Shopify orders to a Constant Contact campaign
Did our October sale email in Constant Contact lead to Shopify orders?
212 people clicked, and 19 placed a Shopify order within 7 days. - Orders: 23, none counted twice - Revenue: 3,870.00 USD - Conversion: 9 percent of clickers - Excluded: 2 canceled orders This shows correlation, not proof. Want the list of buyers?
Shopify
Sample figures. Your results come from your own account.
constant-contact-get-campaign
constant-contact-get-campaign-click
shopify-get-order

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Shopify

Shopify
Run it on your own Shopify data.

Connect Shopify, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

You cannot tell whether a campaign click became a sale

A Constant Contact campaign promotes a sale, and you want to know whether clickers bought in Shopify. Matching click dates to orders by email, skipping canceled orders and not counting repeat clickers twice is fiddly spreadsheet work.

Without PopdockAI

  • Export campaign clicks from Constant Contact
  • Export Shopify orders for the same weeks
  • Match emails and dates by hand in a spreadsheet
  • Double count repeat clickers or include canceled orders

With PopdockAI

  • Clicks are grouped by email with each first click date
  • Shopify orders placed after that click are matched in your window
  • Voided and canceled orders are left out and none counted twice
  • Results are labelled as correlation, and nothing is changed

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** For the Constant Contact campaign `{campaign-id}`, find the people who clicked it and the Shopify orders they placed within `{attribution-days}` days (default 7) of their first click.

**Step 1: Confirm the campaign**

Call `constant-contact-get-campaign` with `campaign-id` set to `{campaign-id}`. If nothing comes back, stop and say the campaign was not found. Note its name, last-sent-date, sends, opens and clicks.

**Step 2: Collect the clickers**

Call `constant-contact-get-campaign-click` with `campaign-id` set to `{campaign-id}` and `max-records` 500. Group by email address (lower-case, trimmed) and keep each person's earliest click date and the links they clicked. If 500 rows come back, say the results may be incomplete.

**Step 3: Find their orders in Shopify**

For each clicker, call `shopify-get-order` with `email` set to their address, `created-at.from` set to their first click date and `created-at.to` set to `{attribution-days}` days after it. Keep orders whose financial-status is not voided and that are not cancelled (cancelled-at blank).

**Step 4: Report**

* Header: campaign name, last-sent-date, sends, clicks, unique clickers.
* Totals: clickers who ordered, number of orders, sum of total-price by currency, and the share of clickers who ordered.
* Table: email, first click date, order-number, order date, total-price, financial-status.
* Add one line saying this is click-then-order correlation within the window, not proven causation.

**Rules & Guidelines:**

* `constant-contact-get-campaign` and `constant-contact-get-campaign-click` are on the constant-contact server. `shopify-get-order` is on the shopify server.
* Do not count an order twice when a person clicked more than once.
* This prompt is read-only. Do NOT call `constant-contact-resend-campaign-to-non-openers`, `constant-contact-update-campaign`, `shopify-update-order` or any other tool whose name starts with shopify-add-, shopify-update-, constant-contact-add-, constant-contact-update- or constant-contact-resend-.

**Validation:**

* If the campaign has no clicks, say so and stop.
* If no clicker placed an order in the window, report zero attributed orders rather than widening the window.
* Never add amounts in different currencies together.

Who it's for

One answer, three teams that use it

Email marketers

Know which sends led to orders

See orders, revenue and the share of clickers who bought for a campaign, measured the same way every time.

How many people who clicked our Black Friday preview in Constant Contact ordered in Shopify within five days?

Marketing managers

Report campaign revenue you can defend

Revenue is shown per currency and labelled as correlation, so the number in your report is honest about what it means.

Give me revenue per currency from Shopify orders that followed clicks on the Spring Collection campaign in Constant Contact.

Ecommerce managers

Judge whether a promotion paid off

Compare the buyers a promotion email drew in with the effort behind it, without asking anyone for a spreadsheet.

Did the Free Shipping Weekend email in Constant Contact actually bring in Shopify orders? Use a seven day window.

How it works

What PopdockAI does when you ask

You name the campaign, and your AI assistant matches each clicker to the Shopify orders they placed afterwards. It only reads both systems and reports zero rather than widening the window.

01

Ask

You give the campaign and optionally a window, seven days by default.

Your AI tool

02

Collect

It groups clicks by email with each person's first click date.

constant-contact-get-campaign
constant-contact-get-campaign-click

03

Match

It finds Shopify orders placed after that click, leaving out canceled ones.

shopify-get-order

04

Report

You get orders, revenue per currency and the share of clickers who bought.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Shopify and one secure connection to your AI tool. No code, no exports.

get-data

constant-contact-get-campaign

Returns Constant Contact email campaigns with their status and headline counts: sends, opens, not opened, clicks, bounces, forwards and opt-outs. Filter by name, status, type and last sent date.
get-data

constant-contact-get-campaign-click

Returns Constant Contact campaign clicks with the link clicked and the device used. Filter by campaign, campaign activity, contact, email address or domain, device type and date.
get-data

shopify-get-order

Returns Shopify orders with their financial status, fulfillment status and total. Filter by order number or name, customer, email, financial status, fulfillment status, created date and total price.
Read only.Nothing in Shopify Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

A consistent answer on what each campaign drove

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation