You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
###### <aid='usercompletedaction'></a>[- userCompletedAction(event, state = {}): null](#usercompletedaction)
166
+
167
+
Report a user action for this Branch Universal Object instance. Create a Branch Universal Object on page load and call `userCompletedAction(RegisterViewEvent)`.
168
+
169
+
**event** an event name string, either one of the standard events defined by the SDK (as defined [below](#useractions)) or a custom event name.
170
+
**state** an optional object with string properties representing custom application state
List the universal object on Spotlight (iOS only). **Note**: The recommended way to list an item on Spotlight is to use the `automaticallyListOnSpotlight` property with `createBranchUniversalObject` and then call `userCompletedAction(RegisterViewEvent)`, e.g.
The `automaticallyListOnSpotlight` property is ignored on Android.
204
+
205
+
##### <aid='useractions'></a>[Register User Actions On An Object](#useractions)
206
+
207
+
We've added a series of custom events that you'll want to start tracking for rich analytics and targeting. Here's a list below with a sample snippet that calls the register view event.
208
+
209
+
| Event | Description
210
+
| ----- | ---
211
+
| RegisterViewEvent | User viewed the object
212
+
| AddToWishlistEvent | User added the object to their wishlist
213
+
| AddToCartEvent | User added object to cart
214
+
| PurchaseInitiatedEvent | User started to check out
215
+
| PurchasedEvent | User purchased the item
216
+
| ShareInitiatedEvent | User started to share the object
0 commit comments