Documentation
¶
Index ¶
- type AdImpression
- type AddPaymentInfo
- type AddShippingInfo
- type AddToCart
- type AddToWishlist
- type BeginCheckout
- type CampaignDetails
- type Click
- type CloseConvertLead
- type CloseUnconvertLead
- type DisqualifyLead
- type EarnVirtualMoney
- type Exception
- type FileDownload
- type FirstVisit
- type FormStart
- type FormSubmit
- type GenerateLead
- type Item
- type JoinGroup
- type LevelEnd
- type LevelStart
- type LevelUp
- type Login
- type PageView
- type PostScore
- type Purchase
- type QualifyLead
- type Refund
- type RemoveFromCart
- type ScreenView
- type Scroll
- type Search
- type SelectContent
- type SelectItem
- type SelectPromotion
- type SessionStart
- type Share
- type SignUp
- type SpendVirtualCurrency
- type TutorialBegin
- type TutorialComplete
- type UnlockAchievement
- type UserEngagement
- type VideoComplete
- type VideoProgress
- type VideoStart
- type ViewCart
- type ViewItem
- type ViewItemList
- type ViewPromotion
- type ViewSearchResults
- type WorkingLead
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdImpression ¶
type AdImpression struct { AdPlatform string `json:"ad_platform,omitempty"` AdSource string `json:"ad_source,omitempty"` AdFormat string `json:"ad_format,omitempty"` AdUnitName string `json:"ad_unit_name,omitempty"` Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` }
AdImpression https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#ad_impression
type AddPaymentInfo ¶
type AddPaymentInfo[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Coupon string `json:"coupon,omitempty"` PaymentType string `json:"payment_type,omitempty"` Items []I `json:"items,omitempty"` }
AddPaymentInfo https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events
type AddShippingInfo ¶
type AddShippingInfo[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Coupon string `json:"coupon,omitempty"` ShippingTier string `json:"shipping_tier,omitempty"` Items []I `json:"items,omitempty"` }
AddShippingInfo https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#add_shipping_info
type AddToCart ¶
type AddToWishlist ¶
type AddToWishlist[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` }
AddToWishlist https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#add_to_wishlist
type BeginCheckout ¶
type BeginCheckout[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Coupon string `json:"coupon,omitempty"` Items []I `json:"items,omitempty"` }
BeginCheckout https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#begin_checkout
type CampaignDetails ¶
type CampaignDetails struct { CampaignID string `json:"campaign_id,omitempty"` Campaign string `json:"campaign,omitempty"` Source string `json:"source,omitempty"` Medium string `json:"medium,omitempty"` Term string `json:"term,omitempty"` Content string `json:"content,omitempty"` }
CampaignDetails https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#campaign_details
type CloseConvertLead ¶ added in v0.2.2
type CloseConvertLead[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` }
CloseConvertLead https://developers.google.com/tag-platform/gtagjs/reference/events#close_convert_lead
type CloseUnconvertLead ¶ added in v0.2.2
type CloseUnconvertLead[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` UnconvertLeadReason string `json:"unconvert_lead_reason,omitempty"` }
CloseUnconvertLead https://developers.google.com/tag-platform/gtagjs/reference/events#close_unconvert_lead
type DisqualifyLead ¶ added in v0.2.2
type DisqualifyLead[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` DisqualifiedLeadReason string `json:"disqualified_lead_reason,omitempty"` }
DisqualifyLead https://developers.google.com/tag-platform/gtagjs/reference/events#disqualify_lead
type EarnVirtualMoney ¶
type EarnVirtualMoney struct { VirtualCurrencyName string `json:"virtual_currency_name,omitempty"` Value float64 `json:"value,omitempty"` }
EarnVirtualMoney https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#earn_virtual_currency
type FileDownload ¶
type FileDownload struct { FileExtension string `json:"file_extension,omitempty"` FileName string `json:"file_name,omitempty"` LinkClasses string `json:"link_classes,omitempty"` LinkID string `json:"link_id,omitempty"` LinkText string `json:"link_text,omitempty"` LinkURL string `json:"link_url,omitempty"` }
type FirstVisit ¶ added in v0.2.2
type FirstVisit struct{}
type FormSubmit ¶
type GenerateLead ¶
type GenerateLead struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` }
GenerateLead https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#generate_lead
type Item ¶
type Item struct { Affiliation string `json:"affiliation,omitempty"` Coupon string `json:"coupon,omitempty"` CreativeName string `json:"creative_name,omitempty"` CreativeSlot string `json:"creative_slot,omitempty"` Discount float64 `json:"discount,omitempty"` Index int `json:"index,omitempty"` ItemBrand string `json:"item_brand,omitempty"` ItemCategory string `json:"item_category,omitempty"` ItemCategory2 string `json:"item_category2,omitempty"` ItemCategory3 string `json:"item_category3,omitempty"` ItemCategory4 string `json:"item_category4,omitempty"` ItemCategory5 string `json:"item_category5,omitempty"` ItemID string `json:"item_id,omitempty"` ItemListID string `json:"item_list_id,omitempty"` ItemListName string `json:"item_list_name,omitempty"` ItemName string `json:"item_name,omitempty"` ItemVariant string `json:"item_variant,omitempty"` LocationID string `json:"location_id,omitempty"` Price float64 `json:"price,omitempty"` PromotionID string `json:"promotion_id,omitempty"` PromotionName string `json:"promotion_name,omitempty"` Quantity float64 `json:"quantity,omitempty"` }
type LevelEnd ¶
type LevelStart ¶
type LevelStart struct {
LevelName string `json:"level_name,omitempty"`
}
type LevelUp ¶
type LevelUp struct { Level int `json:"level,omitempty"` Character string `json:"character,omitempty"` }
LevelUp https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#level_up
type Login ¶
type Login struct {
Method string `json:"method,omitempty"`
}
Login https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#login
type PageView ¶
type PostScore ¶
type Purchase ¶
type Purchase[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` TransactionID string `json:"transaction_id,omitempty"` Coupon string `json:"coupon,omitempty"` Shipping float64 `json:"shipping,omitempty"` Tax float64 `json:"tax,omitempty"` Items []I `json:"items,omitempty"` }
Purchase https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#purchase
type QualifyLead ¶ added in v0.2.2
type QualifyLead[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` }
QualifyLead https://developers.google.com/tag-platform/gtagjs/reference/events#qualify_lead
type Refund ¶
type Refund[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` TransactionID string `json:"transaction_id,omitempty"` Coupon string `json:"coupon,omitempty"` Shipping float64 `json:"shipping,omitempty"` Tax float64 `json:"tax,omitempty"` Items []I `json:"items,omitempty"` }
Refund https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#refund
type RemoveFromCart ¶
type RemoveFromCart[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` }
RemoveFromCart https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#remove_from_cart
type ScreenView ¶
type Search ¶
type Search struct {
SearchTerm string `json:"search_term,omitempty"`
}
Search https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#search
type SelectContent ¶
type SelectContent struct { ContentType string `json:"content_type,omitempty"` ContentID string `json:"content_id,omitempty"` }
SelectContent https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#select_content
type SelectItem ¶
type SelectPromotion ¶
type SelectPromotion[I any] struct { CreativeName string `json:"creative_name,omitempty"` CreativeSlot string `json:"creative_slot,omitempty"` PromotionID string `json:"promotion_id,omitempty"` PromotionName string `json:"promotion_name,omitempty"` Items []I `json:"items,omitempty"` }
SelectPromotion https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#select_promotion
type SessionStart ¶
type SessionStart struct{}
type Share ¶
type Share struct {}
Share https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#share
type SignUp ¶
type SignUp struct {
Method string `json:"method,omitempty"`
}
SignUp https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#sign_up
type SpendVirtualCurrency ¶
type SpendVirtualCurrency struct { Value float64 `json:"value,omitempty"` VirtualCurrencyName string `json:"virtual_currency_name,omitempty"` ItemName string `json:"item_name,omitempty"` }
SpendVirtualCurrency https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#spend_virtual_currency
type TutorialBegin ¶
type TutorialBegin struct{}
TutorialBegin https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#tutorial_begin
type TutorialComplete ¶
type TutorialComplete struct{}
TutorialComplete https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#tutorial_complete
type UnlockAchievement ¶
type UnlockAchievement struct {
ArchievementID string `json:"achievement_id"`
}
UnlockAchievement https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#unlock_achievement
type UserEngagement ¶
type UserEngagement struct {
EngagementTimeMsec int64 `json:"engagement_time_msec,omitempty"`
}
type VideoComplete ¶
type VideoComplete struct { VideoCurrentTime int64 `json:"video_current_time,omitempty"` VideoDuration int64 `json:"video_duration,omitempty"` VideoPercent int64 `json:"video_percent,omitempty"` VideoProvider string `json:"video_provider,omitempty"` VideoTitle string `json:"video_title,omitempty"` VideoURL string `json:"video_url,omitempty"` Visible bool `json:"visible,omitempty"` }
type VideoProgress ¶
type VideoProgress struct { VideoCurrentTime int64 `json:"video_current_time,omitempty"` VideoDuration int64 `json:"video_duration,omitempty"` VideoPercent int64 `json:"video_percent,omitempty"` VideoProvider string `json:"video_provider,omitempty"` VideoTitle string `json:"video_title,omitempty"` VideoURL string `json:"video_url,omitempty"` Visible bool `json:"visible,omitempty"` }
type VideoStart ¶
type VideoStart struct { VideoCurrentTime int64 `json:"video_current_time,omitempty"` VideoDuration int64 `json:"video_duration,omitempty"` VideoPercent int64 `json:"video_percent,omitempty"` VideoProvider string `json:"video_provider,omitempty"` VideoTitle string `json:"video_title,omitempty"` VideoURL string `json:"video_url,omitempty"` Visible bool `json:"visible,omitempty"` }
type ViewCart ¶
type ViewCart[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` }
ViewCart https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#view_cart
type ViewItem ¶
type ViewItem[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` }
ViewItem https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#view_item
type ViewItemList ¶
type ViewItemList[I any] struct { ItemListID string `json:"item_list_id,omitempty"` ItemListName string `json:"item_list_name,omitempty"` Items []I `json:"items,omitempty"` }
ViewItemList https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#view_item_list
type ViewPromotion ¶
type ViewPromotion[I any] struct { CreativeName string `json:"creative_name,omitempty"` CreativeSlot string `json:"creative_slot,omitempty"` PromotionID string `json:"promotion_id,omitempty"` PromotionName string `json:"promotion_name,omitempty"` Items []I `json:"items,omitempty"` }
ViewPromotion https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#view_promotion
type ViewSearchResults ¶
type ViewSearchResults struct {
SearchTerm string `json:"search_term,omitempty"`
}
ViewSearchResults https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#view_search_results
type WorkingLead ¶ added in v0.2.2
type WorkingLead[I any] struct { Currency iso4217.Currency `json:"currency,omitempty"` Value float64 `json:"value,omitempty"` Items []I `json:"items,omitempty"` LeadStatus string `json:"lead_status,omitempty"` }
WorkingLead https://developers.google.com/tag-platform/gtagjs/reference/events#working_lead
Source Files
¶
- addpaymentinfo.go
- addshippinginfo.go
- addtocart.go
- addtowishlist.go
- adimpression.go
- begincheckout.go
- campaigndetails.go
- click.go
- closeconvertlead.go
- closeunconvertlead.go
- disqualifylead.go
- doc.go
- earnvirtualmoney.go
- exception.go
- filedownload.go
- firstvisit.go
- formstart.go
- formsubmit.go
- generatelead.go
- item.go
- joingroup.go
- levelend.go
- levelstart.go
- levelup.go
- login.go
- pageview.go
- postscrore.go
- purchase.go
- qualifylead.go
- refund.go
- removefromcart.go
- screenview.go
- scroll.go
- search.go
- selectcontent.go
- selectitem.go
- selectitempromotion.go
- sessionstart.go
- share.go
- signup.go
- spendvirtualmoney.go
- tutorialbegin.go
- tutorialcomplete.go
- unlockarchievement.go
- userengagement.go
- videocomplete.go
- videoprogress.go
- videostart.go
- viewcart.go
- viewitem.go
- viewitemlist.go
- viewpromotion.go
- viewsearchresults.go
- workinglead.go