Documentation ¶
Index ¶
- Constants
- type Event
- func (evt Event) MarshalJSON() ([]byte, error)
- func (evt *Event) SetAdvertisingID(advertisingID string) *Event
- func (evt *Event) SetDateValue(param EventParam, val time.Time) *Event
- func (evt *Event) SetDateValueFlight(param EventParam, val time.Time) *Event
- func (evt *Event) SetDeviceIP(deviceIP string) *Event
- func (evt *Event) SetEventTime(eventTime time.Time) *Event
- func (evt *Event) SetName(name EventName) *Event
- func (evt *Event) SetPrice(price float64, currency string) *Event
- func (evt *Event) SetPriceList(prices []float64, currency string) *Event
- func (evt *Event) SetRevenue(revenue float64, currency string) *Event
- func (evt *Event) SetValue(param EventParam, val string) *Event
- func (evt *Event) SetValueInt(param EventParam, val int) *Event
- func (evt *Event) SetValueInterface(param EventParam, val interface{}) *Event
- type EventName
- type EventParam
- type Tracker
Constants ¶
View Source
const ( Android deviceOS = "android" IOS deviceOS = "ios" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (Event) MarshalJSON ¶
func (*Event) SetAdvertisingID ¶
func (*Event) SetDateValue ¶
func (evt *Event) SetDateValue(param EventParam, val time.Time) *Event
func (*Event) SetDateValueFlight ¶
func (evt *Event) SetDateValueFlight(param EventParam, val time.Time) *Event
func (*Event) SetDeviceIP ¶
func (*Event) SetPriceList ¶
func (*Event) SetValueInt ¶
func (evt *Event) SetValueInt(param EventParam, val int) *Event
func (*Event) SetValueInterface ¶
func (evt *Event) SetValueInterface(param EventParam, val interface{}) *Event
type EventName ¶
type EventName string
const ( StartTrial EventName = "af_start_trial" Subscribe EventName = "af_subscribe" Login EventName = "af_login" LevelAchieved EventName = "af_level_achieved" BonusClaimed EventName = "bonus_claimed" RegistrationMethod EventName = "af_complete_registration" ProductSearch EventName = "af_search" ProductViewed EventName = "af_content_view" ListViewed EventName = "af_list_view" AddToWishList EventName = "af_add_to_wishlist" AddToCart EventName = "af_add_to_cart" InitiateCheckout EventName = "af_initiated_checkout" Purchase EventName = "af_purchase" CompletedPurchase EventName = "completed_purchase" //use if Purchase event not sent RemoveFromCart EventName = "remove_from_cart" FirstPurchase EventName = "first_purchase" Payment EventName = "payment" PaymentCompleted EventName = "payment_completed" BookingRequested EventName = "ride_booking_requested" TravelBooking EventName = "af_travel_booking" )
type EventParam ¶
type EventParam string
const ( ParamRevenue EventParam = "af_revenue" ParamPrice EventParam = "af_price" ParamCurrency EventParam = "af_currency" //Gaming ParamLevel EventParam = "af_level" ParamScore EventParam = "af_score" ParamBonusType EventParam = "bonus_type" //EComm ParamRegMethod EventParam = "af_registration_method" ParamSearchString EventParam = "af_search_string" ParamSearchOrContentList EventParam = "af_content_list" ParamContentID EventParam = "af_content_id" ParamContentType EventParam = "af_content_type" ParamQuantity EventParam = "af_quantity" ParamOrderID EventParam = "af_order_id" ParamRecieptID EventParam = "af_receipt_id" //Navigation ParamStartDest EventParam = "af_destination_a" ParamEndDest EventParam = "af_destination_b" ParamCity EventParam = "af_city" ParamRegion EventParam = "af_region" ParamCountry EventParam = "af_country" //Travel ParamDepartureDate EventParam = "af_departing_departure_date" ParamReturnDate EventParam = "af_returning_departure_date" ParamClass EventParam = "af_class" )
Click to show internal directories.
Click to hide internal directories.