@recapi/client 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ are, gzipped, and browsers cache them:
|
|
|
35
35
|
|
|
36
36
|
```html
|
|
37
37
|
<script type="module">
|
|
38
|
-
import { createClient } from 'https://api.example.com/sdk/0.17.
|
|
38
|
+
import { createClient } from 'https://api.example.com/sdk/0.17.1/index.js';
|
|
39
39
|
|
|
40
40
|
const recapi = createClient({ apiKey: 'rk_pub_…', baseUrl: 'https://api.example.com', consent: false });
|
|
41
41
|
// From your cookie banner, once the visitor agrees: recapi.setConsent(true).
|
|
@@ -162,7 +162,7 @@ nothing to paste again. A file of its own rather than more exports of
|
|
|
162
162
|
a page costs one call (two with a top-up), billed as one recommendation
|
|
163
163
|
each, a product page's second row included (below). Each row asks for its own placement: `product` on
|
|
164
164
|
product pages, `cart` on the cart page (Shopify's `request.page_type`),
|
|
165
|
-
`section` elsewhere, so
|
|
165
|
+
`section` elsewhere, so Home's "By placement" and a lift test tell
|
|
166
166
|
them apart; one not configured in the dashboard serves as `default`, with
|
|
167
167
|
its settings and its running lift test. A shop that pasted an earlier
|
|
168
168
|
snippet keeps it, with every row on `default` and 6 products asked for,
|
|
@@ -372,7 +372,7 @@ shortcode shows none unless given one: `[recapi heading="You may also like"]`.
|
|
|
372
372
|
|
|
373
373
|
Each row asks for its own placement: `product` on product pages (the
|
|
374
374
|
Related products spot, or `[recapi]` in a product template), `cart` for
|
|
375
|
-
`[recapi]` on the cart page, `shortcode` elsewhere, so
|
|
375
|
+
`[recapi]` on the cart page, `shortcode` elsewhere, so Home's "By
|
|
376
376
|
placement" and a lift test tell them apart. A placement not configured in
|
|
377
377
|
the dashboard serves as `default`, with its settings and its running lift
|
|
378
378
|
test, so a shop that set `default` up keeps it.
|
|
@@ -466,7 +466,7 @@ library so it stays one file (a snippet holds it) and follows the site's
|
|
|
466
466
|
proxy settings.
|
|
467
467
|
|
|
468
468
|
Have past orders? Download them from WooCommerce → recapi and upload the
|
|
469
|
-
file on
|
|
469
|
+
file on Your data (under Set up). The plugin writes the last 90 days of processing and
|
|
470
470
|
completed orders as the dashboard's `user_id,item_id,level,timestamp` CSV,
|
|
471
471
|
one `purchase` per order line, dated when the order was paid (else
|
|
472
472
|
placed). The buyer is the customer id `identify()` sends, a guest
|
|
@@ -1115,6 +1115,9 @@ minifier, to keep zero dev dependencies.
|
|
|
1115
1115
|
|
|
1116
1116
|
## Changes
|
|
1117
1117
|
|
|
1118
|
+
- 2026-11-24: version 0.17.1. WooCommerce: the settings screen names
|
|
1119
|
+
where the dashboard now keeps the API keys (the Quickstart's last
|
|
1120
|
+
section) and the past-orders upload (Your data, under Set up).
|
|
1118
1121
|
- 2026-11-22: version 0.17.0. Shopify's pixel and WooCommerce's
|
|
1119
1122
|
order-received page send what each line bought paid, and its currency,
|
|
1120
1123
|
with the purchase (`value`, `currency`); a line without a price is sent
|
package/package.json
CHANGED