@@ -156,10 +156,9 @@ extension AnytypeAnalytics {
156156 )
157157 }
158158
159- func logChangeObjectType( _ type: AnalyticsObjectType , spaceId : String , route: ChangeObjectTypeRoute ? = nil ) {
159+ func logChangeObjectType( _ type: AnalyticsObjectType , route: ChangeObjectTypeRoute ? = nil ) {
160160 logEvent (
161161 " ChangeObjectType " ,
162- spaceId: spaceId,
163162 withEventProperties: [
164163 AnalyticsEventsPropertiesKey . objectType: type. analyticsId,
165164 AnalyticsEventsPropertiesKey . route: route? . rawValue
@@ -241,21 +240,19 @@ extension AnytypeAnalytics {
241240 logEvent ( " DeleteBlock " )
242241 }
243242
244- func logUploadMedia( type: FileContentType , spaceId : String , route: UploadMediaRoute ) {
243+ func logUploadMedia( type: FileContentType , route: UploadMediaRoute ) {
245244 logEvent (
246245 " UploadMedia " ,
247- spaceId: spaceId,
248246 withEventProperties: [
249247 AnalyticsEventsPropertiesKey . type: type. rawValue,
250248 AnalyticsEventsPropertiesKey . route: route. rawValue
251249 ]
252250 )
253251 }
254252
255- func logDownloadMedia( type: FileContentType , spaceId : String ) {
253+ func logDownloadMedia( type: FileContentType ) {
256254 logEvent (
257255 " DownloadMedia " ,
258- spaceId: spaceId,
259256 withEventProperties: [ AnalyticsEventsPropertiesKey . type: type. rawValue]
260257 )
261258 }
@@ -270,7 +267,6 @@ extension AnytypeAnalytics {
270267 isNew: Bool ,
271268 type: AnalyticsEventsRelationType ,
272269 key: AnalyticsRelationKey ,
273- spaceId: String ,
274270 route: AnalyticsEventsRouteKind ? = nil
275271 ) {
276272 let properties = [
@@ -282,7 +278,6 @@ extension AnytypeAnalytics {
282278
283279 logEvent (
284280 isNew ? " CreateRelation " : " AddExistingRelation " ,
285- spaceId: spaceId,
286281 withEventProperties: properties
287282 )
288283 }
@@ -291,12 +286,10 @@ extension AnytypeAnalytics {
291286 isEmpty: Bool ,
292287 format: PropertyFormat ,
293288 type: AnalyticsEventsRelationType ,
294- key: AnalyticsRelationKey ,
295- spaceId: String
289+ key: AnalyticsRelationKey
296290 ) {
297291 logEvent (
298292 isEmpty ? " DeleteRelationValue " : " ChangeRelationValue " ,
299- spaceId: spaceId,
300293 withEventProperties: [
301294 AnalyticsEventsPropertiesKey . type: type. rawValue,
302295 AnalyticsEventsPropertiesKey . format: format. analyticsName,
@@ -317,29 +310,27 @@ extension AnytypeAnalytics {
317310 logEvent ( " CreateObject " , spaceId: spaceId, withEventProperties: properties)
318311 }
319312
320- func logCreateObjectType( spaceId : String ) {
313+ func logCreateObjectType( ) {
321314 let properties = [
322315 AnalyticsEventsPropertiesKey . objectType: " _otobjectType " ,
323316 AnalyticsEventsPropertiesKey . format: " Page "
324317 ]
325- logEvent ( " CreateObject " , spaceId : spaceId , withEventProperties: properties)
318+ logEvent ( " CreateObject " , withEventProperties: properties)
326319 }
327320
328- func logLinkToObject( type: AnalyticsEventsLinkToObjectType , spaceId : String ) {
321+ func logLinkToObject( type: AnalyticsEventsLinkToObjectType ) {
329322 logEvent (
330323 " LinkToObject " ,
331- spaceId: spaceId,
332324 withEventProperties: [
333325 AnalyticsEventsPropertiesKey . linkType: type. rawValue
334326 ]
335327 )
336328 }
337329
338330 // MARK: - Collection
339- func logScreenCollection( with type: String , spaceId : String ) {
331+ func logScreenCollection( with type: String ) {
340332 logEvent (
341333 " ScreenCollection " ,
342- spaceId: spaceId,
343334 withEventProperties: [
344335 AnalyticsEventsPropertiesKey . embedType: AnalyticsEventsSetCollectionEmbedType . object,
345336 AnalyticsEventsPropertiesKey . type: type
@@ -349,10 +340,9 @@ extension AnytypeAnalytics {
349340
350341 // MARK: - Type
351342
352- func logScreenType( objectType: AnalyticsObjectType ? , spaceId : String ) {
343+ func logScreenType( objectType: AnalyticsObjectType ? ) {
353344 logEvent (
354345 " ScreenType " ,
355- spaceId: spaceId,
356346 withEventProperties: [
357347 AnalyticsEventsPropertiesKey . objectType: objectType? . analyticsId ?? " "
358348 ]
@@ -389,10 +379,9 @@ extension AnytypeAnalytics {
389379 }
390380
391381 // MARK: - Set
392- func logScreenSet( with type: String , spaceId : String ) {
382+ func logScreenSet( with type: String ) {
393383 logEvent (
394384 " ScreenSet " ,
395- spaceId: spaceId,
396385 withEventProperties: [
397386 AnalyticsEventsPropertiesKey . embedType: AnalyticsEventsSetCollectionEmbedType . object,
398387 AnalyticsEventsPropertiesKey . type: type
@@ -686,29 +675,26 @@ extension AnytypeAnalytics {
686675 logEvent ( " SettingsWallpaperSet " )
687676 }
688677
689- func logScreenSearch( spaceId : String , type: ScreenSearchType ) {
678+ func logScreenSearch( type: ScreenSearchType ) {
690679 logEvent (
691680 " ScreenSearch " ,
692- spaceId: spaceId,
693681 withEventProperties: [
694682 AnalyticsEventsPropertiesKey . type: type. rawValue
695683 ] )
696684 }
697685
698- func logSearchResult( spaceId : String , objectType: String ? = nil ) {
686+ func logSearchResult( objectType: String ? = nil ) {
699687 logEvent (
700688 " SearchResult " ,
701- spaceId: spaceId,
702689 withEventProperties: [
703690 AnalyticsEventsPropertiesKey . objectType : objectType
704691 ] . compactMapValues { $0 }
705692 )
706693 }
707694
708- func logSearchInput( spaceId : String , route: SearchInputRoute ? = nil ) {
695+ func logSearchInput( route: SearchInputRoute ? = nil ) {
709696 logEvent (
710697 " SearchInput " ,
711- spaceId: spaceId,
712698 withEventProperties: [
713699 AnalyticsEventsPropertiesKey . route: route? . rawValue
714700 ] . compactMapValues { $0 }
@@ -749,23 +735,22 @@ extension AnytypeAnalytics {
749735 )
750736 }
751737
752- func logDuplicateObject( count: Int , objectType: AnalyticsObjectType , spaceId : String ) {
738+ func logDuplicateObject( count: Int , objectType: AnalyticsObjectType ) {
753739 logEvent (
754740 " DuplicateObject " ,
755- spaceId: spaceId,
756741 withEventProperties: [
757742 AnalyticsEventsPropertiesKey . count: count,
758743 AnalyticsEventsPropertiesKey . objectType: objectType. analyticsId,
759744 ]
760745 )
761746 }
762747
763- func logCopyBlock( spaceId : String , countBlocks: Int ) {
764- logEvent ( " CopyBlock " , spaceId : spaceId , withEventProperties: [ AnalyticsEventsPropertiesKey . count: countBlocks] )
748+ func logCopyBlock( countBlocks: Int ) {
749+ logEvent ( " CopyBlock " , withEventProperties: [ AnalyticsEventsPropertiesKey . count: countBlocks] )
765750 }
766751
767- func logPasteBlock( spaceId : String , countBlocks: Int ) {
768- logEvent ( " PasteBlock " , spaceId : spaceId , withEventProperties: [ AnalyticsEventsPropertiesKey . count: countBlocks] )
752+ func logPasteBlock( countBlocks: Int ) {
753+ logEvent ( " PasteBlock " , withEventProperties: [ AnalyticsEventsPropertiesKey . count: countBlocks] )
769754 }
770755
771756 func logSetObjectDescription( ) {
@@ -930,10 +915,9 @@ extension AnytypeAnalytics {
930915 )
931916 }
932917
933- func logTemplateCreate( objectType: AnalyticsObjectType , spaceId : String ) {
918+ func logTemplateCreate( objectType: AnalyticsObjectType ) {
934919 logEvent (
935920 " CreateTemplate " ,
936- spaceId: spaceId,
937921 withEventProperties: [
938922 AnalyticsEventsPropertiesKey . objectType: objectType. analyticsId
939923 ]
@@ -970,10 +954,9 @@ extension AnytypeAnalytics {
970954 )
971955 }
972956
973- func logCreateLink( spaceId : String , objectType: AnalyticsObjectType , route: AnalyticsEventsRouteKind ) {
957+ func logCreateLink( objectType: AnalyticsObjectType , route: AnalyticsEventsRouteKind ) {
974958 logEvent (
975959 " CreateLink " ,
976- spaceId: spaceId,
977960 withEventProperties: [
978961 AnalyticsEventsPropertiesKey . objectType: objectType. analyticsId,
979962 AnalyticsEventsPropertiesKey . route: route. rawValue
@@ -1070,6 +1053,7 @@ extension AnytypeAnalytics {
10701053 func logGalleryInstall( name: String ) {
10711054 logEvent (
10721055 " GalleryInstall " ,
1056+ addActiveSpaceInfo: false ,
10731057 withEventProperties: [ AnalyticsEventsPropertiesKey . name: name]
10741058 )
10751059 }
@@ -1196,12 +1180,12 @@ extension AnytypeAnalytics {
11961180 logEvent ( " ScreenSettingsSpaceMembers " , withEventProperties: [ AnalyticsEventsPropertiesKey . route: route. rawValue] )
11971181 }
11981182
1199- func logDuplicateBlock( spaceId : String ) {
1200- logEvent ( " DuplicateBlock " , spaceId : spaceId )
1183+ func logDuplicateBlock( ) {
1184+ logEvent ( " DuplicateBlock " )
12011185 }
12021186
1203- func logDeleteRelation( spaceId : String , format: PropertyFormat , key: AnalyticsRelationKey ? = nil , route: DeleteRelationRoute ) {
1204- logEvent ( " DeleteRelation " , spaceId : spaceId , withEventProperties: [
1187+ func logDeleteRelation( format: PropertyFormat , key: AnalyticsRelationKey ? = nil , route: DeleteRelationRoute ) {
1188+ logEvent ( " DeleteRelation " , withEventProperties: [
12051189 AnalyticsEventsPropertiesKey . relationKey: key? . value ?? " " ,
12061190 AnalyticsEventsPropertiesKey . format: format. analyticsName,
12071191 AnalyticsEventsPropertiesKey . route: route. rawValue
0 commit comments