From 4e2c79c656ef43ba78a5acb80c5b10160857d088 Mon Sep 17 00:00:00 2001 From: Spencer Attick <23665784+spencerattick@users.noreply.github.com> Date: Tue, 11 Mar 2025 09:04:50 -0400 Subject: [PATCH 1/2] unencoded example --- .../catalog/libraries/server/pixel-tracking-api/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md b/src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md index 198a166ca9..5be239ff96 100644 --- a/src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md +++ b/src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md @@ -60,3 +60,9 @@ eyJ3cml0ZUtleSI6ICJZT1VSX1dSSVRFX0tFWSIsICJ1c2VySWQiOiAiMDI1cGlrYWNodTAyNSIsICJl ```html ``` + +##### If you choose not to encode your payload, you can send it like this instead: + +``` +https://api.segment.io/v1/pixel/track?userId=user_123&event=Email Opened&properties.subject=The Electric Daily&properties.email=jane.kim@example.com&writeKey= +``` From edbb62f2fb64a4082a18bb1dd2c731783fa8c97c Mon Sep 17 00:00:00 2001 From: forstisabella <92472883+forstisabella@users.noreply.github.com> Date: Mon, 17 Mar 2025 12:34:22 -0400 Subject: [PATCH 2/2] shuffle for a more direct flow --- .../libraries/server/pixel-tracking-api/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md b/src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md index 5be239ff96..66a2b1ba51 100644 --- a/src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md +++ b/src/connections/sources/catalog/libraries/server/pixel-tracking-api/index.md @@ -55,14 +55,14 @@ Each endpoint *always* responds with a `200 `, even if an error occur eyJ3cml0ZUtleSI6ICJZT1VSX1dSSVRFX0tFWSIsICJ1c2VySWQiOiAiMDI1cGlrYWNodTAyNSIsICJldmVudCI6ICJFbWFpbCBPcGVuZWQiLCAicHJvcGVydGllcyI6IHsgICAic3ViamVjdCI6ICJUaGUgRWxlY3RyaWMgRGFpbHkiLCAgICJlbWFpbCI6ICJwZWVrQXRNZUBlbWFpbC5wb2tlIiB9fQ ``` -##### Add an image tag to your email newsletter with `src` pointing to a Pixel API route: +##### If you choose not to encode your payload, send it like this instead: -```html - +``` +https://api.segment.io/v1/pixel/track?userId=user_123&event=Email Opened&properties.subject=The Electric Daily&properties.email=jane.kim@example.com&writeKey= ``` -##### If you choose not to encode your payload, you can send it like this instead: +##### Add an image tag to your email newsletter with `src` pointing to a Pixel API route: -``` -https://api.segment.io/v1/pixel/track?userId=user_123&event=Email Opened&properties.subject=The Electric Daily&properties.email=jane.kim@example.com&writeKey= +```html + ```