https://github.com/countly/countly-banking-demo
https://github.com/countly/countly-banking-demo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/countly/countly-banking-demo
- Owner: Countly
- Created: 2021-01-06T18:07:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-05-06T10:43:25.000Z (about 1 year ago)
- Last Synced: 2025-05-06T11:38:56.574Z (about 1 year ago)
- Language: CSS
- Size: 6.36 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Banking Demo
## Login
When user click login button make API call and after that change device id with customer ID;
[https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-#changing-device-id](https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript-#changing-device-id)
There are 2 option here :
1 - Merge prelogin and current user profile in Countly.
Countly.q.push(['change_id', "customerID"],true);
2 - Create new profile with ID
Countly.q.push(['change_id', "customerID"]);
Note : ID stores in local storage of browser. You can check easily.

And after change id user :

## Custom Event
Custom event sample for transfering money with duration
Start transfer event for calculating duration. (ex: start event when user enter transfer page)
Countly.start_event("Transfer");
End transfer event. (ex: after user sent money)
Countly.end_event(
{
"key": "Transfer",
"sum": 50,
"segmentation": {
"type": "EFT"
}
});