Skip to content

Commit 57ed1ca

Browse files
Merge branch 'master' into tsconfig_types
2 parents 44f851a + f560908 commit 57ed1ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Features:
44
- Add ability to allow multiple CORS per app for web apps
5+
- Add app id and name as view segment for self-tracking
56

67
Dependencies:
78
- Bump body-parser from 1.20.3 to 2.2.0

frontend/express/views/dashboard.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,10 +2043,10 @@ <h4><a href="#/analytics/events/key/{{encodeURIComponent this.name}}">{{this.nam
20432043
Countly2.track_sessions();
20442044

20452045
//track pageviews automatically
2046-
Countly2.track_pageview(Countly.getViewName());
2046+
Countly2.track_pageview(Countly.getViewName(), null, {app_id:countlyCommon.ACTIVE_APP_ID, app_name:countlyGlobal.apps[countlyCommon.ACTIVE_APP_ID]?.name});
20472047

20482048
$(window).on('hashchange', function() {
2049-
Countly2.track_pageview(Countly.getViewName());
2049+
Countly2.track_pageview(Countly.getViewName(), null, {app_id:countlyCommon.ACTIVE_APP_ID, app_name:countlyGlobal.apps[countlyCommon.ACTIVE_APP_ID]?.name});
20502050
});
20512051

20522052
//display in app messages

0 commit comments

Comments
 (0)