EventParams interface

Standardgtag.js event parameters. For more information, seethe GA4 reference documentation.

Signature:

exportinterfaceEventParams

Properties

PropertyTypeDescription
affiliationstring
checkout_optionstring
checkout_stepnumber
content_typestring
couponstring
currencystring
descriptionstring
event_categorystring
event_labelstring
fatalboolean
firebase_screen_classstringFirebase-specific. Use to log ascreen_class to Firebase Analytics.
firebase_screenstringFirebase-specific. Use to log ascreen_name to Firebase Analytics.
item_idstring
item_list_idstring
item_list_namestring
itemsItem[]
methodstring
numberstring
page_locationstring
page_pathstring
page_titlestring
payment_typestring
promotion_idstring
promotion_namestring
promotionsPromotion[]
screen_namestring
search_termstring
shipping_tierstring
shippingCurrency
taxCurrency
transaction_idstring
valuenumber

EventParams.affiliation

Signature:

affiliation?:string;

EventParams.checkout_option

Signature:

checkout_option?:string;

EventParams.checkout_step

Signature:

checkout_step?:number;

EventParams.content_type

Signature:

content_type?:string;

EventParams.coupon

Signature:

coupon?:string;

EventParams.currency

Signature:

currency?:string;

EventParams.description

Signature:

description?:string;

EventParams.event_category

Signature:

event_category?:string;

EventParams.event_label

Signature:

event_label?:string;

EventParams.fatal

Signature:

fatal?:boolean;

EventParams.firebase_screen_class

Firebase-specific. Use to log ascreen_class to Firebase Analytics.

Signature:

firebase_screen_class?:string;

EventParams.firebase_screen

Firebase-specific. Use to log ascreen_name to Firebase Analytics.

Signature:

firebase_screen?:string;

EventParams.item_id

Signature:

item_id?:string;

EventParams.item_list_id

Signature:

item_list_id?:string;

EventParams.item_list_name

Signature:

item_list_name?:string;

EventParams.items

Signature:

items?:Item[];

EventParams.method

Signature:

method?:string;

EventParams.number

Signature:

number?:string;

EventParams.page_location

Signature:

page_location?:string;

EventParams.page_path

Signature:

page_path?:string;

EventParams.page_title

Signature:

page_title?:string;

EventParams.payment_type

Signature:

payment_type?:string;

EventParams.promotion_id

Signature:

promotion_id?:string;

EventParams.promotion_name

Signature:

promotion_name?:string;

EventParams.promotions

Signature:

promotions?:Promotion[];

EventParams.screen_name

Signature:

screen_name?:string;

EventParams.search_term

Signature:

search_term?:string;

EventParams.shipping_tier

Signature:

shipping_tier?:string;

EventParams.shipping

Signature:

shipping?:Currency;

EventParams.tax

Signature:

tax?:Currency;

EventParams.transaction_id

Signature:

transaction_id?:string;

EventParams.value

Signature:

value?:number;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-22 UTC.