From 59647a6d202cc7d838ea818fc4f855df007468da Mon Sep 17 00:00:00 2001 From: jshin-tse <107695224+jshin-tse@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:40:11 -0500 Subject: [PATCH] fix: Update allowable character limits and number of attributes for GA360 (#24) --- .../MPKitFirebaseGA4Analytics.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mParticle-Google-Analytics-Firebase-GA4/MPKitFirebaseGA4Analytics.m b/mParticle-Google-Analytics-Firebase-GA4/MPKitFirebaseGA4Analytics.m index ac9b053..ce4d02b 100755 --- a/mParticle-Google-Analytics-Firebase-GA4/MPKitFirebaseGA4Analytics.m +++ b/mParticle-Google-Analytics-Firebase-GA4/MPKitFirebaseGA4Analytics.m @@ -42,12 +42,13 @@ @implementation MPKitFirebaseGA4Analytics static NSString *const instanceIdIntegrationKey = @"app_instance_id"; static NSString *const invalidFirebaseKey = @"invalid_ga4_key"; +// Following limits are based off Google Analytics 360 limits, docs here "https://support.google.com/analytics/answer/11202874?sjid=14644072134282618832-NA#limits" const NSInteger FIR_MAX_CHARACTERS_EVENT_NAME = 40; const NSInteger FIR_MAX_CHARACTERS_IDENTITY_NAME = 24; -const NSInteger FIR_MAX_CHARACTERS_EVENT_ATTR_VALUE = 100; +const NSInteger FIR_MAX_CHARACTERS_EVENT_ATTR_VALUE = 500; const NSInteger FIR_MAX_CHARACTERS_IDENTITY_ATTR_VALUE = 36; -const NSInteger FIR_MAX_EVENT_PARAMETERS_PROPERTIES = 25; -const NSInteger FIR_MAX_ITEM_PARAMETERS = 10; +const NSInteger FIR_MAX_EVENT_PARAMETERS_PROPERTIES = 100; +const NSInteger FIR_MAX_ITEM_PARAMETERS = 25; #pragma mark Static Methods