Skip to content

Commit

Permalink
update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CataD-Tapp committed Nov 1, 2022
1 parent 0b98c76 commit 8e26129
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ Once the SDK is initialised, you can track an event by calling its dedicated met
```swift
let myItem = OmetriaBasketItem(
productId: "product-1",
variantId: "variant-product-1"
sku: "sku-product-1",
quantity: 1,
price: 12.0)
let myItems = [myItem]
let myBasket = OmetriaBasket(totalPrice: 12.0, currency: "USD", items: myItems)
let myBasket = OmetriaBasket(id: "basket-id", totalPrice: 12.0, currency: "USD", items: myItems, link: "http://sample.link.com")

Ometria.sharedInstance().trackBasketUpdatedEvent(basket: myBasket)
```
Expand Down Expand Up @@ -176,20 +177,6 @@ This event is about capturing interest from the visitor for this product.
trackProductViewedEvent(productId: String)
```

#### Wishlist events

The visitor has added this product to their wishlist:

```swift
trackWishlistAddedToEvent(productId: String)
```

... or removed it:

```swift
trackWishlistRemovedFromEvent(productId: String)
```

#### Basket viewed

The visitor has viewed a dedicated page, screen or modal with the contents of the shopping basket:
Expand Down

0 comments on commit 8e26129

Please sign in to comment.