@cowprotocol/cow-sdk 7.1.5 → 7.2.0

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 CHANGED
@@ -236,6 +236,46 @@ This example demonstrates the simplest way to trade on CoW Protocol.
236
236
  For more advanced use cases, you can use additional parameters such as `receiver`, `partiallyFillable`, `validTo`, and others.
237
237
  Refer to the [Trading SDK documentation](https://github.com/cowprotocol/cow-sdk/tree/main/packages/trading/README.md) for comprehensive details.
238
238
 
239
+ ## Developer Attribution (UTM Tracking)
240
+
241
+ The SDK automatically includes UTM tracking in all orders to attribute trading volume to developers. Default parameters:
242
+
243
+ ```typescript
244
+ {
245
+ utmSource: 'cowmunity',
246
+ utmMedium: 'cow-sdk@7.1.6', // SDK version
247
+ utmCampaign: 'developer-cohort',
248
+ utmContent: '',
249
+ utmTerm: 'js'
250
+ }
251
+ ```
252
+
253
+ **Customize or disable** via `advancedSettings.appData.metadata.utm`:
254
+
255
+ ```typescript
256
+ // Custom UTM
257
+ await sdk.getQuote(parameters, {
258
+ appData: {
259
+ metadata: {
260
+ utm: { utmContent: 'my-integration-v2' }
261
+ }
262
+ }
263
+ })
264
+
265
+ // Disable UTM
266
+ await sdk.getQuote(parameters, {
267
+ appData: {
268
+ metadata: {
269
+ utm: {}
270
+ }
271
+ }
272
+ })
273
+ ```
274
+
275
+ > **Note:** Providing any `utm` field gives you full control - the SDK will not add defaults.
276
+
277
+ > **Tip:** Use `utmContent` for graffiti without affecting your `appCode`. The `appCode` parameter tracks your integration on [CoW Protocol's Dune dashboards](https://dune.com/cowprotocol/cowswap), while `utmContent` is available for custom identifiers or experimentation - all while attributing your volume to SDK integrators' collective impact.
278
+
239
279
 
240
280
  ## Adapters
241
281
 
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## [7.2.0](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.1.6...cow-sdk-v7.2.0) (2025-12-03)
4
+
5
+
6
+ ### ✨ Features
7
+
8
+ * **app-data:** add UTM Tracking for Developer Attribution ([#722](https://github.com/cowprotocol/cow-sdk/issues/722)) ([0cd79d1](https://github.com/cowprotocol/cow-sdk/commit/0cd79d185630cc44b111979e873e30c760904976))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @cowprotocol/sdk-app-data bumped to 4.3.2
16
+ * @cowprotocol/sdk-trading bumped to 0.6.0
17
+
18
+ ## [7.1.6](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.1.5...cow-sdk-v7.1.6) (2025-12-01)
19
+
20
+
21
+ ### Dependencies
22
+
23
+ * The following workspace dependencies were updated
24
+ * dependencies
25
+ * @cowprotocol/sdk-order-book bumped to 0.4.0
26
+ * @cowprotocol/sdk-order-signing bumped to 0.1.16
27
+ * @cowprotocol/sdk-trading bumped to 0.5.4
28
+
3
29
  ## [7.1.5](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.1.4...cow-sdk-v7.1.5) (2025-11-27)
4
30
 
5
31
 
package/dist/README.md CHANGED
@@ -236,6 +236,46 @@ This example demonstrates the simplest way to trade on CoW Protocol.
236
236
  For more advanced use cases, you can use additional parameters such as `receiver`, `partiallyFillable`, `validTo`, and others.
237
237
  Refer to the [Trading SDK documentation](https://github.com/cowprotocol/cow-sdk/tree/main/packages/trading/README.md) for comprehensive details.
238
238
 
239
+ ## Developer Attribution (UTM Tracking)
240
+
241
+ The SDK automatically includes UTM tracking in all orders to attribute trading volume to developers. Default parameters:
242
+
243
+ ```typescript
244
+ {
245
+ utmSource: 'cowmunity',
246
+ utmMedium: 'cow-sdk@7.1.6', // SDK version
247
+ utmCampaign: 'developer-cohort',
248
+ utmContent: '',
249
+ utmTerm: 'js'
250
+ }
251
+ ```
252
+
253
+ **Customize or disable** via `advancedSettings.appData.metadata.utm`:
254
+
255
+ ```typescript
256
+ // Custom UTM
257
+ await sdk.getQuote(parameters, {
258
+ appData: {
259
+ metadata: {
260
+ utm: { utmContent: 'my-integration-v2' }
261
+ }
262
+ }
263
+ })
264
+
265
+ // Disable UTM
266
+ await sdk.getQuote(parameters, {
267
+ appData: {
268
+ metadata: {
269
+ utm: {}
270
+ }
271
+ }
272
+ })
273
+ ```
274
+
275
+ > **Note:** Providing any `utm` field gives you full control - the SDK will not add defaults.
276
+
277
+ > **Tip:** Use `utmContent` for graffiti without affecting your `appCode`. The `appCode` parameter tracks your integration on [CoW Protocol's Dune dashboards](https://dune.com/cowprotocol/cowswap), while `utmContent` is available for custom identifiers or experimentation - all while attributing your volume to SDK integrators' collective impact.
278
+
239
279
 
240
280
  ## Adapters
241
281
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowprotocol/cow-sdk",
3
- "version": "7.1.5",
3
+ "version": "7.2.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "description": "CoW Protocol SDK - get quote, configure your order, and trade",
6
6
  "main": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowprotocol/cow-sdk",
3
- "version": "7.1.5",
3
+ "version": "7.2.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "description": "CoW Protocol SDK - get quote, configure your order, and trade",
6
6
  "main": "./dist/index.js",
@@ -30,13 +30,13 @@
30
30
  "@cow-sdk/typescript-config": "0.0.0-beta.0"
31
31
  },
32
32
  "dependencies": {
33
- "@cowprotocol/sdk-app-data": "4.3.1",
33
+ "@cowprotocol/sdk-common": "0.4.0",
34
34
  "@cowprotocol/sdk-config": "0.4.1",
35
35
  "@cowprotocol/sdk-contracts-ts": "0.7.1",
36
- "@cowprotocol/sdk-order-book": "0.3.2",
37
- "@cowprotocol/sdk-trading": "0.5.3",
38
- "@cowprotocol/sdk-order-signing": "0.1.15",
39
- "@cowprotocol/sdk-common": "0.4.0"
36
+ "@cowprotocol/sdk-order-signing": "0.1.16",
37
+ "@cowprotocol/sdk-order-book": "0.4.0",
38
+ "@cowprotocol/sdk-trading": "0.6.0",
39
+ "@cowprotocol/sdk-app-data": "4.3.2"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@openzeppelin/merkle-tree": "^1.x",