Skip to content

Commit

Permalink
Merge pull request #344 from Countly/current-view-name
Browse files Browse the repository at this point in the history
Added current view name in event segmentation
  • Loading branch information
turtledreams authored Sep 25, 2024
2 parents 2d9eac4 + 27747d7 commit c33eb3a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 24.7.3
* Added current view names to event segmentation based on the `enablePreviousNameRecording` (Experimental!)

## 24.7.2
* Automatic view pause/resumes are changed with stop/start for better data consistency.
* Added the config interface 'experimental' to group experimental features.
Expand Down
2 changes: 1 addition & 1 deletion Countly-PL.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Countly-PL'
s.version = '24.7.2'
s.version = '24.7.3'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.'
s.homepage = 'https://github.com/Countly/countly-sdk-ios'
Expand Down
1 change: 1 addition & 0 deletions Countly.m
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ - (void)recordEvent:(NSString *)key segmentation:(NSDictionary *)segmentation co
if(CountlyViewTrackingInternal.sharedInstance.enablePreviousNameRecording) {
filteredSegmentations[kCountlyPreviousEventName] = previousEventName ?: @"";
previousEventName = key;
filteredSegmentations[kCountlyCurrentView] = CountlyViewTrackingInternal.sharedInstance.currentViewName ?: @"";
}
}
event.key = key;
Expand Down
2 changes: 1 addition & 1 deletion Countly.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Countly'
s.version = '24.7.2'
s.version = '24.7.3'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'Countly is an innovative, real-time, open source mobile analytics platform.'
s.homepage = 'https://github.com/Countly/countly-sdk-ios'
Expand Down
4 changes: 2 additions & 2 deletions Countly.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 24.7.2;
MARKETING_VERSION = 24.7.3;
PRODUCT_BUNDLE_IDENTIFIER = ly.count.CountlyiOSSDK;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -758,7 +758,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 24.7.2;
MARKETING_VERSION = 24.7.3;
PRODUCT_BUNDLE_IDENTIFIER = ly.count.CountlyiOSSDK;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 1 addition & 1 deletion CountlyCommon.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ @interface CountlyCommon ()
#endif
@end

NSString* const kCountlySDKVersion = @"24.7.2";
NSString* const kCountlySDKVersion = @"24.7.3";
NSString* const kCountlySDKName = @"objc-native-ios";

NSString* const kCountlyErrorDomain = @"ly.count.ErrorDomain";
Expand Down
2 changes: 0 additions & 2 deletions CountlyViewTrackingInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

extern NSString* const kCountlyReservedEventView;

//TODO: Need discussion for its usage and then we decide to keep it or remove it
extern NSString* const kCountlyCurrentView;
extern NSString* const kCountlyPreviousView;
extern NSString* const kCountlyPreviousEventName;
Expand All @@ -19,7 +18,6 @@ extern NSString* const kCountlyPreviousEventName;
@property (nonatomic) NSString* previousViewID;

@property (nonatomic) BOOL enablePreviousNameRecording;
//TODO: Need discussion for its usage and then we decide to keep it or remove it
@property (nonatomic) NSString* currentViewName;
@property (nonatomic) NSString* previousViewName;

Expand Down
1 change: 0 additions & 1 deletion CountlyViewTrackingInternal.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ @interface CountlyViewTrackingInternal ()

NSString* const kCountlyReservedEventView = @"[CLY]_view";

//TODO: Need discussion for its usage and then we decide to keep it or remove it
NSString* const kCountlyCurrentView = @"cly_cvn";
NSString* const kCountlyPreviousView = @"cly_pvn";

Expand Down

0 comments on commit c33eb3a

Please sign in to comment.