Skip to content

Commit 0580488

Browse files
markzegarellibot-docsteamkdaswanihaackedstayseesong
authored
Release 22.35.2 (#3441)
* More Pardot (Actions) updates for 8/30 deploy * Fix minor typo * Updated A.js Classic end of service note * fix destination dossier for private destinations * Add pagination and increase results (#3418) * Add pagination and increase results * add highlight * Make moengage actions searchable in docs (#3417) * Update Snapchat Conversions API docs prior to GA (#3416) * Update Snapchat Conversions API docs prior to GA * Update src/connections/destinations/catalog/actions-snap-conversions/index.md Co-authored-by: stayseesong <[email protected]> * Introducing the new Log Purchases Action (#2730) * Introducing the new Log Purchases Action Ship date of the feature still pending - would love review/edit of the steps in advance * Edits * Update heading * Apply suggestions from code review Co-authored-by: stayseesong <[email protected]> * Update src/connections/destinations/catalog/actions-amplitude/index.md Co-authored-by: markzegarelli <[email protected]> Co-authored-by: stayseesong <[email protected]> * repo sync (#3429) * catalog update (#3430) * Update how zlib must be referenced in functions docs (#3438) * Add note to GEC about order ID requirements (#3440) Co-authored-by: Segment Docs Robot <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: Phil Haack <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: Thomas Gilbert <[email protected]> Co-authored-by: Niels <[email protected]>
1 parent 129f8b9 commit 0580488

File tree

2 files changed

+28
-1
lines changed
  • src
    • _includes/content/functions
    • connections/destinations/catalog/actions-google-enhanced-conversions

2 files changed

+28
-1
lines changed

src/_includes/content/functions/runtime.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,30 @@ The following dependencies are installed in the function environment by default.
2828
- [`uuidv5 v1.0.0`](https://www.npmjs.com/package/uuidv5) exposed as `uuidv5`
2929
- [`xml v1.0.1`](https://www.npmjs.com/package/xml) exposed as `xml`
3030
- [`xml2js v0.4.23`](https://www.npmjs.com/package/xml2js) exposed as `xml2js`
31-
- [`zlib v1.0.5`](https://www.npmjs.com/package/zlib) exposed as `zlib`
31+
- [`zlib v1.0.5`](https://www.npmjs.com/package/zlib) exposed as `zlib.zlib`
32+
33+
`zlib`'s asynchronous methods `inflate` and `deflate` must be used with `async` or `await`. For example:
34+
35+
```js
36+
zlib = zlib.zlib; // Required to access zlib objects and associated functions
37+
async function onRequest(request, settings) {
38+
const body = request.json();
39+
40+
const input = 'something';
41+
42+
// Calling inflateSync method
43+
var deflated = zlib.deflateSync(input);
44+
45+
console.log(deflated.toString('base64'));
46+
47+
// Calling inflateSync method
48+
var inflated = zlib.inflateSync(new Buffer.from(deflated)).toString();
49+
50+
console.log(inflated);
51+
52+
console.log('Done');
53+
}
54+
```
3255

3356
Only the [`crypto` Node.js module](https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html ) is included (exposed as `crypto`). [Other built-in Node.js modules](https://nodejs.org/api/modules.html) are not available.
3457

src/connections/destinations/catalog/actions-google-enhanced-conversions/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ The Google Enhanced Conversions destination enables you to improve the accuracy
1616
>
1717
> When you authenticate your Segment workspace with your Google Account, use a Google Account that is a member of your Google Ads account.
1818
19+
20+
> info ""
21+
> To deduplicate conversions that are recorded from the Google Ads Conversion tag (Gtag) from the data that is sent to Google Enhanced Conversions, Order ID (Transaction ID) must be implemented in the Google Ads Conversion tag (Gtag) **and** the same Order IDs must be sent with the corresponding Enhanced Conversions data. This is required for Google to successfully process your enhancement data.
22+
1923
## Getting started
2024
1. From the Segment web app, click **Catalog**, then click **Destinations**.
2125
2. Search for “Google Enhanced Conversions” in the Destinations Catalog, and select the destination.

0 commit comments

Comments
 (0)