[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-24 UTC."],[],[],null,["# analytics.AnalyticsEventBuilder class\n\nThe Firebase Analytics event builder interface.\n\nAccess via `functions.analytics.event()`.\n\n**Signature:** \n\n export declare class AnalyticsEventBuilder \n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|----------------------------------------------------------------------------------------------------------------------------------------------|-----------|----------------------------------------------------------------|\n| [(constructor)(triggerResource, options)](./firebase-functions.analytics.analyticseventbuilder.md#analyticsanalyticseventbuilderconstructor) | | Constructs a new instance of the `AnalyticsEventBuilder` class |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|---------------------------------------------------------------------------------------------------------------|-----------|------------------------------------------------------------------------|\n| [onLog(handler)](./firebase-functions.analytics.analyticseventbuilder.md#analyticsanalyticseventbuilderonlog) | | Event handler that fires every time a Firebase Analytics event occurs. |\n\nanalytics.AnalyticsEventBuilder.(constructor)\n---------------------------------------------\n\nConstructs a new instance of the `AnalyticsEventBuilder` class\n\n**Signature:** \n\n constructor(triggerResource: () =\u003e string, options: DeploymentOptions);\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------------|--------------------------------------------------------------------------------------------|-------------|\n| triggerResource | () =\\\u003e string | |\n| options | [DeploymentOptions](./firebase-functions.deploymentoptions.md#deploymentoptions_interface) | |\n\nanalytics.AnalyticsEventBuilder.onLog()\n---------------------------------------\n\nEvent handler that fires every time a Firebase Analytics event occurs.\n\n**Signature:** \n\n onLog(handler: (event: AnalyticsEvent, context: EventContext) =\u003e PromiseLike\u003cany\u003e | any): CloudFunction\u003cAnalyticsEvent\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| handler | (event: [AnalyticsEvent](./firebase-functions.analytics.analyticsevent.md#analyticsanalyticsevent_class), context: [EventContext](./firebase-functions.eventcontext.md#eventcontext_interface)) =\\\u003e PromiseLike\\\u003cany\\\u003e \\| any | Event handler that fires every time a Firebase Analytics event occurs. |\n\n**Returns:**\n\n[CloudFunction](./firebase-functions.cloudfunction.md#cloudfunction_interface)\\\u003c[AnalyticsEvent](./firebase-functions.analytics.analyticsevent.md#analyticsanalyticsevent_class)\\\u003e\n\nA function that you can export and deploy."]]