From 7e5f565bb7875e0052e39d0a33a29cc341c0a4d7 Mon Sep 17 00:00:00 2001 From: Tiffany Qi Date: Mon, 4 Mar 2024 10:22:54 -0800 Subject: [PATCH 1/2] try converting to backslash --- pages/docs/data-structure/events-and-properties.md | 2 +- pages/docs/tracking-methods/integrations/google-pubsub.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/docs/data-structure/events-and-properties.md b/pages/docs/data-structure/events-and-properties.md index a5bddbff5b..472000c40c 100644 --- a/pages/docs/data-structure/events-and-properties.md +++ b/pages/docs/data-structure/events-and-properties.md @@ -35,7 +35,7 @@ We recommend striking the right balance when defining your events. Events should **For example:** -* If your goal is to analyse at high-level how users traverse through different pages: instead of tracking multiple events `Home Page Viewed` and `Pricing Page Viewed`, track a `Page Viewed` event with a `Page Name` property set to **"/home"** or **"/pricing"**. See [Tracking Page Views](/docs/tracking-methods/sdks/javascript#tracking-page-views) in our Javascript SDK documentation on how to instrument this. +* If your goal is to analyse at high-level how users traverse through different pages: instead of tracking multiple events `Home Page Viewed` and `Pricing Page Viewed`, track a `Page Viewed` event with a `Page Name` property set to `/home` or `/pricing`. See [Tracking Page Views](/docs/tracking-methods/sdks/javascript#tracking-page-views) in our Javascript SDK documentation on how to instrument this. * If your goal is to track users adding items to a shopping cart: instead of tracking multiple events `Add Shirt to Cart`, `Add Hoodie to Cart`, and `Add Socks to Cart`, track a `Add to Cart` event with a `Item` property set to **"Shirt"**, or **"Hoodie"**, or **"Socks"**. diff --git a/pages/docs/tracking-methods/integrations/google-pubsub.md b/pages/docs/tracking-methods/integrations/google-pubsub.md index a5b9aa0702..4e7f856cd2 100644 --- a/pages/docs/tracking-methods/integrations/google-pubsub.md +++ b/pages/docs/tracking-methods/integrations/google-pubsub.md @@ -123,7 +123,7 @@ At this point, you can route events from your production Pub/Sub topic through a Once connected, this will result in a steady stream of events being sent to Mixpanel. Happy streaming! # Error Handling -In rare instances, Mixpanel's /import API may return a 429 or 5XX error. These can be safely retried. We recommend an exponential backoff with jitter strategy, as written in the sample code above. PubSub can be configured to perform exponential backoff if the function itself times out. +In rare instances, Mixpanel's `/import` API may return a 429 or 5XX error. These can be safely retried. We recommend an exponential backoff with jitter strategy, as written in the sample code above. PubSub can be configured to perform exponential backoff if the function itself times out. If the payload is malformed, our API might return a 400 error. In this case, the item cannot be ingested and this error should not be retried. Enqueue these messages onto a dead-letter-queue for inspection later on. This might happen while initially testing the connector, but should be rare in production, assuming the shape of data flowing through the pipeline remains consistent. From f0980ff9f85a519accf2a56d7d189b0233521baa Mon Sep 17 00:00:00 2001 From: Tiffany Qi Date: Mon, 4 Mar 2024 19:48:53 -0800 Subject: [PATCH 2/2] add escaped character instead --- pages/docs/data-structure/events-and-properties.md | 2 +- pages/docs/tracking-methods/integrations/google-pubsub.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/docs/data-structure/events-and-properties.md b/pages/docs/data-structure/events-and-properties.md index 472000c40c..7198857660 100644 --- a/pages/docs/data-structure/events-and-properties.md +++ b/pages/docs/data-structure/events-and-properties.md @@ -35,7 +35,7 @@ We recommend striking the right balance when defining your events. Events should **For example:** -* If your goal is to analyse at high-level how users traverse through different pages: instead of tracking multiple events `Home Page Viewed` and `Pricing Page Viewed`, track a `Page Viewed` event with a `Page Name` property set to `/home` or `/pricing`. See [Tracking Page Views](/docs/tracking-methods/sdks/javascript#tracking-page-views) in our Javascript SDK documentation on how to instrument this. +* If your goal is to analyse at high-level how users traverse through different pages: instead of tracking multiple events `Home Page Viewed` and `Pricing Page Viewed`, track a `Page Viewed` event with a `Page Name` property set to **"\/home"** or **"\/pricing"**. See [Tracking Page Views](/docs/tracking-methods/sdks/javascript#tracking-page-views) in our Javascript SDK documentation on how to instrument this. * If your goal is to track users adding items to a shopping cart: instead of tracking multiple events `Add Shirt to Cart`, `Add Hoodie to Cart`, and `Add Socks to Cart`, track a `Add to Cart` event with a `Item` property set to **"Shirt"**, or **"Hoodie"**, or **"Socks"**. diff --git a/pages/docs/tracking-methods/integrations/google-pubsub.md b/pages/docs/tracking-methods/integrations/google-pubsub.md index 4e7f856cd2..d2a38460a5 100644 --- a/pages/docs/tracking-methods/integrations/google-pubsub.md +++ b/pages/docs/tracking-methods/integrations/google-pubsub.md @@ -123,7 +123,7 @@ At this point, you can route events from your production Pub/Sub topic through a Once connected, this will result in a steady stream of events being sent to Mixpanel. Happy streaming! # Error Handling -In rare instances, Mixpanel's `/import` API may return a 429 or 5XX error. These can be safely retried. We recommend an exponential backoff with jitter strategy, as written in the sample code above. PubSub can be configured to perform exponential backoff if the function itself times out. +In rare instances, Mixpanel's \/import API may return a 429 or 5XX error. These can be safely retried. We recommend an exponential backoff with jitter strategy, as written in the sample code above. PubSub can be configured to perform exponential backoff if the function itself times out. If the payload is malformed, our API might return a 400 error. In this case, the item cannot be ingested and this error should not be retried. Enqueue these messages onto a dead-letter-queue for inspection later on. This might happen while initially testing the connector, but should be rare in production, assuming the shape of data flowing through the pipeline remains consistent.