appsflyer

package
v0.0.0-...-e550be7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewEvent

func NewEvent(appsFlyerID string, platform deviceOS) *Event

func (Event) MarshalJSON

func (evt Event) MarshalJSON() ([]byte, error)

func (*Event) SetAdvertisingID

func (evt *Event) SetAdvertisingID(advertisingID string) *Event

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 (evt *Event) SetDeviceIP(deviceIP string) *Event

func (*Event) SetEventTime

func (evt *Event) SetEventTime(eventTime time.Time) *Event

func (*Event) SetName

func (evt *Event) SetName(name EventName) *Event

func (*Event) SetPrice

func (evt *Event) SetPrice(price float64, currency string) *Event

func (*Event) SetPriceList

func (evt *Event) SetPriceList(prices []float64, currency string) *Event

func (*Event) SetRevenue

func (evt *Event) SetRevenue(revenue float64, currency string) *Event

func (*Event) SetValue

func (evt *Event) SetValue(param EventParam, val string) *Event

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"
)

type Tracker

type Tracker struct {
	// contains filtered or unexported fields
}

func NewTracker

func NewTracker() *Tracker

func (Tracker) Send

func (t Tracker) Send(evt *Event) error

func (*Tracker) SetConfig

func (t *Tracker) SetConfig(configPath string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL