params

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 AddToCart[I any] struct {
	Currency iso4217.Currency `json:"currency,omitempty"`
	Value    float64          `json:"value,omitempty"`
	Items    []I              `json:"items,omitempty"`
}

AddToCart https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#add_to_cart

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 Click

type Click struct {
	LinkClasses string `json:"link_classes,omitempty"`
	LinkDomain  string `json:"link_domain,omitempty"`
	LinkID      string `json:"link_id,omitempty"`
	LinkURL     string `json:"link_url,omitempty"`
	Outbound    bool   `json:"outbound,omitempty"`
}

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 Exception added in v0.2.2

type Exception struct {
	Description string `json:"description,omitempty"`
	Fatal       bool   `json:"fatal,omitempty"`
}

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 FormStart

type FormStart struct {
	FormID          string `json:"form_id,omitempty"`
	FormName        string `json:"form_name,omitempty"`
	FormDestination string `json:"form_destination,omitempty"`
}

type FormSubmit

type FormSubmit struct {
	FormID          string `json:"form_id,omitempty"`
	FormName        string `json:"form_name,omitempty"`
	FormDestination string `json:"form_destination,omitempty"`
	FormSubmitText  string `json:"form_submit_text,omitempty"`
}

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 JoinGroup

type JoinGroup struct {
	GroupID string `json:"group_id,omitempty"`
}

JoinGroup https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#join_group

type LevelEnd

type LevelEnd struct {
	LevelName string `json:"level_name,omitempty"`
	Success   bool   `json:"success,omitempty"`
}

LevelEnd https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag#level_end

type LevelStart

type LevelStart struct {
	LevelName string `json:"level_name,omitempty"`
}

LevelStart https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag#level_start

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 PageView

type PageView struct {
	PageTitle    string `json:"page_title,omitempty"`
	PageLocation string `json:"page_location,omitempty"`
}

PageView https://developers.google.com/analytics/devguides/collection/ga4/views?client_type=gtag#manually_send_page_view_events

type PostScore

type PostScore struct {
	Score     int    `json:"score,omitempty"`
	Level     int    `json:"level,omitempty"`
	Character string `json:"character,omitempty"`
}

PostScore https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#post_score

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 ScreenView struct {
	ScreenClass string `json:"screen_class,omitempty"`
	ScreenName  string `json:"screen_name,omitempty"`
}

ScreenView https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#screen_view

type Scroll

type Scroll struct {
	PercentScrolled    int64 `json:"percent_scrolled,omitempty"`
	EngagementTimeMsec int64 `json:"engagement_time_msec,omitempty"`
}
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 SelectItem[I any] struct {
	ItemListID   string `json:"item_list_id,omitempty" tagging:"item_list_id"`
	ItemListName string `json:"item_list_name,omitempty" tagging:"item_list_name"`
	Items        []I    `json:"items,omitempty" tagging:"pr"`
}

SelectItem https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#select_item

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 {
	Method      string `json:"method,omitempty"`
	ContentType string `json:"content_type,omitempty"`
	ItemID      string `json:"item_id,omitempty"`
}

Share https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#share

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

Jump to

Keyboard shortcuts

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