model

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllOrderBy = []OrderBy{
	OrderByAsc,
	OrderByDesc,
}

Functions

This section is empty.

Types

type AggregateContinentInfo

type AggregateContinentInfo struct {
	Continent  string `json:"continent"`
	NumVisits  int    `json:"nb_visits"`
	PrettyName string `json:"prettyName"`
}

type AggregateCountryInfo

type AggregateCountryInfo struct {
	Country    string  `json:"country"`
	NumVisits  int     `json:"nb_visits"`
	Flag       *string `json:"flag,omitempty"`
	PrettyName string  `json:"prettyName"`
}

type AggregateDeviceInfo

type AggregateDeviceInfo struct {
	Type    string             `json:"type"`
	Count   int                `json:"count"`
	Icon    *string            `json:"icon,omitempty"`
	Devices []*ShortDeviceInfo `json:"devices,omitempty"`
}

type BrowserInfo

type BrowserInfo struct {
	Family            string  `json:"family"`
	FamilyDescription string  `json:"familyDescription"`
	Browser           string  `json:"browser"`
	Name              string  `json:"name"`
	Icon              *string `json:"icon,omitempty"`
	Code              string  `json:"code"`
	Version           string  `json:"version"`
}

type CampaignInfo

type CampaignInfo struct {
	ID        string `json:"id"`
	Content   string `json:"content"`
	Keyword   string `json:"keyword"`
	Medium    string `json:"medium"`
	Name      string `json:"name"`
	Source    string `json:"source"`
	Group     string `json:"group"`
	Placement string `json:"placement"`
}

type ConvertedVisitsOptions

type ConvertedVisitsOptions struct {
	Date graphql.Omittable[*DateRangeOptions] `json:"date,omitempty"`
}

type DateRangeOptions added in v0.6.0

type DateRangeOptions struct {
	Period    SegmentPeriod              `json:"period"`
	StartDate string                     `json:"startDate"`
	EndDate   graphql.Omittable[*string] `json:"endDate,omitempty"`
}

type DeviceInfo

type DeviceInfo struct {
	Type                   string  `json:"type"`
	TypeIcon               *string `json:"typeIcon,omitempty"`
	Brand                  string  `json:"brand"`
	Model                  string  `json:"model"`
	OperatingSystem        string  `json:"operatingSystem"`
	OperatingSystemName    string  `json:"operatingSystemName"`
	OperatingSystemIcon    *string `json:"operatingSystemIcon,omitempty"`
	OperatingSystemCode    string  `json:"operatingSystemCode"`
	OperatingSystemVersion string  `json:"operatingSystemVersion"`
	Resolution             *string `json:"resolution,omitempty"`
}

type EcommerceGoal added in v0.6.0

type EcommerceGoal struct {
	IDSite                int     `json:"idsite"`
	Label                 string  `json:"label"`
	Revenue               int     `json:"revenue"`
	Quantity              int     `json:"quantity"`
	Orders                int     `json:"orders"`
	AveragePrice          float64 `json:"avg_price"`
	AverageQuantity       float64 `json:"avg_quantity"`
	NumVisits             int     `json:"nb_visits"`
	NumActions            int     `json:"nb_actions"`
	ConversionRatePercent string  `json:"conversion_rate"`
	//  Parsed from conversionRatePercent
	ConversionRate            float64  `json:"-"`
	Segment                   string   `json:"segment"`
	SumDailyNumUniqueVisitors int      `json:"sum_daily_nb_uniq_visitors"`
	ConvertedVisits           []*Visit `json:"convertedVisits,omitempty"`
}

type GetEcommerceGoalsOptions added in v0.6.0

type GetEcommerceGoalsOptions struct {
	Date *DateRangeOptions `json:"date"`
}

type GetGoalsOptions

type GetGoalsOptions struct {
	OrderByName graphql.Omittable[*bool] `json:"orderByName,omitempty"`
}

type Goal

type Goal struct {
	IDSite              int      `json:"idsite"`
	IDGoal              int      `json:"idgoal"`
	Name                string   `json:"name"`
	Description         string   `json:"description"`
	MatchAttribute      string   `json:"match_attribute"`
	Pattern             *string  `json:"pattern,omitempty"`
	PatternType         *string  `json:"pattern_type,omitempty"`
	CaseSensitive       *int     `json:"case_sensitive"`
	AllowMultiple       int      `json:"allow_multiple,omitempty"`
	Revenue             int      `json:"revenue"`
	Deleted             int      `json:"deleted"`
	EventValueAsRevenue int      `json:"event_value_as_revenue,omitempty"`
	ConvertedVisits     []*Visit `json:"convertedVisits,omitempty"`
}

type Location

type Location struct {
	Continent     string  `json:"continent"`
	ContinentCode string  `json:"continentCode"`
	Country       string  `json:"country"`
	CountryCode   string  `json:"countryCode"`
	CountryFlag   *string `json:"countryFlag,omitempty"`
	Region        string  `json:"region"`
	RegionCode    string  `json:"regionCode"`
	City          string  `json:"city"`
	Location      string  `json:"location"`
	Latitude      string  `json:"latitude"`
	Longitude     string  `json:"longitude"`
}

type OrderBy

type OrderBy string
const (
	OrderByAsc  OrderBy = "ASC"
	OrderByDesc OrderBy = "DESC"
)

func (OrderBy) IsValid

func (e OrderBy) IsValid() bool

func (OrderBy) MarshalGQL

func (e OrderBy) MarshalGQL(w io.Writer)

func (OrderBy) String

func (e OrderBy) String() string

func (*OrderBy) UnmarshalGQL

func (e *OrderBy) UnmarshalGQL(v interface{}) error

type OrderByOptions

type OrderByOptions struct {
	Timestamp graphql.Omittable[*OrderBy] `json:"timestamp,omitempty"`
}

type Query

type Query struct {
}

type ReferrerInfo

type ReferrerInfo struct {
	Type              *string `json:"type,omitempty"`
	Name              *string `json:"name,omitempty"`
	Keyword           *string `json:"keyword,omitempty"`
	KeywordPosition   *string `json:"keywordPosition,omitempty"`
	URL               *string `json:"url,omitempty"`
	SearchEngineURL   *string `json:"searchEngineUrl,omitempty"`
	SearchEngineIcon  *string `json:"searchEngineIcon,omitempty"`
	SocialNetworkURL  *string `json:"socialNetworkUrl,omitempty"`
	SocialNetworkIcon *string `json:"socialNetworkIcon,omitempty"`
}

type SegmentPeriod

type SegmentPeriod string
const (
	SegmentPeriodDay   SegmentPeriod = "Day"
	SegmentPeriodWeek  SegmentPeriod = "Week"
	SegmentPeriodMonth SegmentPeriod = "Month"
	SegmentPeriodRange SegmentPeriod = "Range"
)

func (SegmentPeriod) IsValid

func (e SegmentPeriod) IsValid() bool

func (SegmentPeriod) MarshalGQL

func (e SegmentPeriod) MarshalGQL(w io.Writer)

func (SegmentPeriod) String

func (e SegmentPeriod) String() string

func (*SegmentPeriod) UnmarshalGQL

func (e *SegmentPeriod) UnmarshalGQL(v interface{}) error

type ShortDeviceInfo

type ShortDeviceInfo struct {
	Name  string `json:"name"`
	Count int    `json:"count"`
}

type Visit

type Visit struct {
	IDSite                         int                   `json:"idSite"`
	SiteName                       string                `json:"siteName"`
	SiteCurrency                   string                `json:"siteCurrency"`
	SiteCurrencySymbol             string                `json:"siteCurrencySymbol"`
	IDVisit                        int                   `json:"idVisit"`
	VisitIP                        string                `json:"visitIp"`
	VisitorID                      string                `json:"visitorId"`
	Fingerprint                    string                `json:"fingerprint"`
	VisitorProfile                 *VisitorProfile       `json:"visitorProfile,omitempty"`
	VisitServerHour                string                `json:"visitServerHour"`
	GoalConversions                int                   `json:"goalConversions"`
	ActionDetails                  []*VisitActionDetails `json:"actionDetails,omitempty"`
	ServerDate                     string                `json:"serverDate"`
	ServerDatePretty               string                `json:"serverDatePretty"`
	ServerTimestamp                int                   `json:"serverTimestamp"`
	ServerTimePretty               string                `json:"serverTimePretty"`
	FirstActionTimestamp           int                   `json:"firstActionTimestamp"`
	LastActionTimestamp            int                   `json:"lastActionTimestamp"`
	LastActionDateTime             string                `json:"lastActionDateTime"`
	ServerDatePrettyFirstAction    string                `json:"serverDatePrettyFirstAction"`
	ServerTimePrettyFirstAction    string                `json:"serverTimePrettyFirstAction"`
	UserID                         *string               `json:"userId,omitempty"`
	VisitorType                    string                `json:"visitorType"`
	VisitorTypeIcon                *string               `json:"visitorTypeIcon,omitempty"`
	VisitConverted                 int                   `json:"visitConverted"`
	VisitConvertedIcon             *string               `json:"visitConvertedIcon,omitempty"`
	VisitCount                     *int                  `json:"visitCount,omitempty"`
	VisitEcommerceStatus           *string               `json:"visitEcommerceStatus,omitempty"`
	VisitEcommerceStatusIcon       *string               `json:"visitEcommerceStatusIcon,omitempty"`
	DaysSinceFirstVisit            int                   `json:"daysSinceFirstVisit"`
	SecondsSinceFirstVisit         int                   `json:"secondsSinceFirstVisit"`
	DaysSinceLastEcommerceOrder    int                   `json:"daysSinceLastEcommerceOrder"`
	SecondsSinceLastEcommerceOrder *int                  `json:"secondsSinceLastEcommerceOrder,omitempty"`
	VisitDuration                  int                   `json:"visitDuration"`
	VisitDurationPretty            string                `json:"visitDurationPretty"`
	Searches                       int                   `json:"searches"`
	Actions                        int                   `json:"actions"`
	Interactions                   int                   `json:"interactions"`
	LanguageCode                   string                `json:"languageCode"`
	Language                       string                `json:"language"`
	DeviceInfo                     *DeviceInfo           `json:"deviceInfo,omitempty"`
	DeviceType                     string                `json:"deviceType"`
	DeviceTypeIcon                 *string               `json:"deviceTypeIcon,omitempty"`
	DeviceBrand                    string                `json:"deviceBrand"`
	DeviceModel                    string                `json:"deviceModel"`
	OperatingSystem                string                `json:"operatingSystem"`
	OperatingSystemName            string                `json:"operatingSystemName"`
	OperatingSystemIcon            *string               `json:"operatingSystemIcon,omitempty"`
	OperatingSystemCode            string                `json:"operatingSystemCode"`
	OperatingSystemVersion         string                `json:"operatingSystemVersion"`
	Resolution                     *string               `json:"resolution,omitempty"`
	BrowserInfo                    *BrowserInfo          `json:"browserInfo,omitempty"`
	BrowserFamily                  string                `json:"browserFamily"`
	BrowserFamilyDescription       string                `json:"browserFamilyDescription"`
	Browser                        string                `json:"browser"`
	BrowserName                    string                `json:"browserName"`
	BrowserIcon                    *string               `json:"browserIcon,omitempty"`
	BrowserCode                    string                `json:"browserCode"`
	BrowserVersion                 string                `json:"browserVersion"`
	Events                         int                   `json:"events"`
	LocationInfo                   *Location             `json:"locationInfo,omitempty"`
	Continent                      string                `json:"continent"`
	ContinentCode                  string                `json:"continentCode"`
	Country                        string                `json:"country"`
	CountryCode                    string                `json:"countryCode"`
	CountryFlag                    *string               `json:"countryFlag,omitempty"`
	Region                         string                `json:"region"`
	RegionCode                     string                `json:"regionCode"`
	City                           string                `json:"city"`
	Location                       string                `json:"location"`
	Latitude                       string                `json:"latitude"`
	Longitude                      string                `json:"longitude"`
	VisitLocalTime                 string                `json:"visitLocalTime"`
	VisitLocalHour                 string                `json:"visitLocalHour"`
	DaysSinceLastVisit             int                   `json:"daysSinceLastVisit"`
	SecondsSinceLastVisit          int                   `json:"secondsSinceLastVisit"`
	Plugins                        *string               `json:"plugins,omitempty"`
	AdClickID                      string                `json:"adClickId"`
	AdProviderID                   string                `json:"adProviderId"`
	AdProviderName                 string                `json:"adProviderName"`
	FormConversions                int                   `json:"formConversions"`
	SessionReplayURL               *string               `json:"sessionReplayUrl,omitempty"`
	CampaignInfo                   *CampaignInfo         `json:"campaignInfo,omitempty"`
	CampaignID                     string                `json:"campaignId"`
	CampaignContent                string                `json:"campaignContent"`
	CampaignKeyword                string                `json:"campaignKeyword"`
	CampaignMedium                 string                `json:"campaignMedium"`
	CampaignName                   string                `json:"campaignName"`
	CampaignSource                 string                `json:"campaignSource"`
	CampaignGroup                  string                `json:"campaignGroup"`
	CampaignPlacement              string                `json:"campaignPlacement"`
}

type VisitActionDetails

type VisitActionDetails struct {
	Type             string        `json:"type"`
	URL              string        `json:"url"`
	Title            string        `json:"title"`
	Subtitle         string        `json:"subtitle"`
	PageTitle        string        `json:"pageTitle"`
	PageIDAction     int           `json:"pageIdAction"`
	IDPageView       string        `json:"idpageview"`
	ServerTimePretty string        `json:"serverTimePretty"`
	PageID           int           `json:"pageId"`
	TimeSpent        int           `json:"timeSpent"`
	TimeSpentPretty  string        `json:"timeSpentPretty"`
	PageViewPosition int           `json:"pageViewPosition"`
	Timestamp        int           `json:"timestamp"`
	GoalPageID       *int          `json:"goalPageId,omitempty"`
	Referrer         *ReferrerInfo `json:"referrer,omitempty"`
	ReferrerType     *string       `json:"referrerType,omitempty"`
	ReferrerName     *string       `json:"referrerName,omitempty"`
	ReferrerKeyword  *string       `json:"referrerKeyword,omitempty"`
}

type VisitorFirstLastVisit

type VisitorFirstLastVisit struct {
	Date            int    `json:"date"`
	PrettyDate      string `json:"prettyDate"`
	DaysAgo         int    `json:"daysAgo"`
	ReferrerType    string `json:"referrerType"`
	ReferrerURL     string `json:"referrerUrl"`
	RefferalSummary string `json:"refferalSummary"`
}

type VisitorProfile

type VisitorProfile struct {
	VisitorID  string                    `json:"visitorId"`
	FirstVisit *VisitorFirstLastVisit    `json:"firstVisit"`
	LastVisit  *VisitorFirstLastVisit    `json:"lastVisit"`
	LastVisits []*Visit                  `json:"lastVisits,omitempty"`
	Devices    []*AggregateDeviceInfo    `json:"devices,omitempty"`
	Countries  []*AggregateCountryInfo   `json:"countries,omitempty"`
	Continents []*AggregateContinentInfo `json:"continents,omitempty"`
}

Jump to

Keyboard shortcuts

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