@@ -52,7 +52,7 @@ const analytics = Analytics({
5252} ) ;
5353
5454export function trackEvent ( name : string , data : object = null ) : void {
55- if ( ! isTrackingAllowed ( ) ) {
55+ if ( ! name || ! isTrackingAllowed ( ) ) {
5656 return ;
5757 }
5858
@@ -76,7 +76,7 @@ export function trackEvent(name: string, data: object = null): void {
7676}
7777
7878export function trackError ( exception : Error , event : Submit ) : void {
79- if ( exception instanceof AppwriteException && exception . type ) {
79+ if ( exception instanceof AppwriteException && exception . type && event ) {
8080 trackEvent ( Submit . Error , {
8181 type : exception . type ,
8282 form : event
@@ -148,11 +148,14 @@ export enum Click {
148148 ConnectRepositoryClick = 'click_connect_repository' ,
149149 CreditsRedeemClick = 'click_credits_redeem' ,
150150 CloudSignupClick = 'click_cloud_signup' ,
151+
151152 DatabaseColumnDelete = 'click_column_delete' ,
152153 DatabaseIndexDelete = 'click_index_delete' ,
153154 DatabaseTableDelete = 'click_table_delete' ,
155+ DatabaseRowDelete = 'click_row_delete' ,
154156 DatabaseDatabaseDelete = 'click_database_delete' ,
155157 DatabaseImportCsv = 'click_database_import_csv' ,
158+
156159 DomainCreateClick = 'click_domain_create' ,
157160 DomainDeleteClick = 'click_domain_delete' ,
158161 DomainRetryDomainVerificationClick = 'click_domain_retry_domain_verification' ,
@@ -289,15 +292,18 @@ export enum Submit {
289292 RowDelete = 'submit_row_delete' ,
290293 RowUpdate = 'submit_row_update' ,
291294 RowUpdatePermissions = 'submit_row_update_permissions' ,
295+
292296 IndexCreate = 'submit_index_create' ,
293297 IndexDelete = 'submit_index_delete' ,
294- TableCreate = 'submit_row_create' ,
295- TableDelete = 'submit_row_delete' ,
296- TableUpdateName = 'submit_row_update_name' ,
297- TableUpdatePermissions = 'submit_row_update_permissions' ,
298- TableUpdateSecurity = 'submit_row_update_security' ,
299- TableUpdateEnabled = 'submit_row_update_enabled' ,
300- TableUpdateDisplayNames = 'submit_row_update_display_names' ,
298+
299+ TableCreate = 'submit_table_create' ,
300+ TableDelete = 'submit_table_delete' ,
301+ TableUpdateName = 'submit_table_update_name' ,
302+ TableUpdatePermissions = 'submit_table_update_permissions' ,
303+ TableUpdateSecurity = 'submit_table_update_security' ,
304+ TableUpdateEnabled = 'submit_table_update_enabled' ,
305+ TableUpdateDisplayNames = 'submit_table_update_display_names' ,
306+
301307 FunctionCreate = 'submit_function_create' ,
302308 FunctionDelete = 'submit_function_delete' ,
303309 FunctionUpdateName = 'submit_function_update_name' ,
0 commit comments