Skip to content

Commit

Permalink
Update web-pixels documentation
Browse files Browse the repository at this point in the history
Current reasons for neutering have to do with user privacy but only reason we don't fire events is we don't have a way to consume consent. Removing the statement to make it easy for us to update in the future.
  • Loading branch information
TejasM authored Jan 29, 2024
1 parent 162f6e8 commit 481e404
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ extension MyViewController: ShopifyCheckoutSheetKitDelegate {

App developers can use [lifecycle events](#monitoring-the-lifecycle-of-a-checkout-session) to monitor and log the status of a checkout session.

**To safeguard user privacy, Web Pixel events will not be dispatched from within the Checkout webview.** Instead, these events will be relayed back to your application through the checkoutDidEmitWebPixelEvent delegate hook. The responsibility then falls on the application developer to ensure adherence to Apple privacy protocols before disseminating these events to third-party providers.
**For behavioural monitoring, chekcout events will be relayed back to your application through the checkoutDidEmitWebPixelEvent delegate hook. The responsibility then falls on the application developer to ensure adherence to Apple privacy policy and local regulations like GDPR and ePrivacy directive before disseminating these events to first-party and third-party systems.

Here's how you might intercept these events and relay them to a third party provider:
Here's how you might intercept these events:

```swift
class MyViewController: UIViewController {
Expand Down Expand Up @@ -303,7 +303,7 @@ extension MyViewController: ShopifyCheckoutSheetKitDelegate {
}
```

**Note that you will likely need to augment these events with customer/session information derived from app state.**
**Note that you may need to augment these events with customer/session information derived from app state.**

_Also note that the `customData` attribute of CustomPixelEvent can take on any shape. As such, this attribute will be returned as a String. Client applications should define a custom data type and deserialize the `customData` string into that type._

Expand Down

0 comments on commit 481e404

Please sign in to comment.