BVPageViewEvent Class Reference

Inherits from NSObject
Conforms to BVAnalyticEvent
Declared in BVPageViewEvent.h

– initWithProductId:withBVPixelProductType:withBrand:withCategoryId:withRootCategoryId:withAdditionalParams:

Required - Product external ID

- (nonnull id)initWithProductId:(nonnull NSString *)productId withBVPixelProductType:(BVPixelProductType)bvProduct withBrand:(nullable NSString *)brand withCategoryId:(nullable NSString *)categoryId withRootCategoryId:(nullable NSString *)rootCategoryId withAdditionalParams:(nullable NSDictionary *)params

Parameters

productId

Required - Product external ID

bvProduct

Required - The product with API key being used.

brand

Optional - Brand name for which the PageView is about.

categoryId

Optional - The category Id for the product, e.g. ‘Electronics_Helmet_Cameras’

rootCategoryId

Optional - Root cateogry for the product, e.g. ‘electronics’

params

Optional - Additional key/value pairs to be send along the request. Most cases this will be nil.

Return Value

the event object that can be used to submit to Bazaarvoice via the BVPixel API.

Declared In

BVPageViewEvent.h

– __unavailable

- (nonnull instancetype)__unavailable

  productId

The product Id for product presented.

@property (nonnull, nonatomic, strong, readonly) NSString *productId

Declared In

BVPageViewEvent.h

  bvProduct

The BV API used to request the product, as defined in the BVPixelProductType.

@property (nonatomic, assign, readonly) BVPixelProductType bvProduct

Declared In

BVPageViewEvent.h

  categoryId

The category Id, if known, for the product presented.

@property (nullable, nonatomic, strong, readonly) NSString *categoryId

Declared In

BVPageViewEvent.h

  rootCategoryId

The root category Id, if known, for the product presented.

@property (nullable, nonatomic, strong, readonly) NSString *rootCategoryId

Declared In

BVPageViewEvent.h

  brand

Brand name for the product being viewed.

@property (nullable, nonatomic, strong, readonly) NSString *brand

Declared In

BVPageViewEvent.h