Google Analytics as per e-Cense document
parent
ab8b62bc3a
commit
d974a7430c
@ -0,0 +1,82 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
import '../google-analytics.dart';
|
||||||
|
|
||||||
|
class AdvancePayments{
|
||||||
|
|
||||||
|
final GALogger logger;
|
||||||
|
AdvancePayments(this.logger);
|
||||||
|
|
||||||
|
// R038
|
||||||
|
payment_services({@required String service_type}){
|
||||||
|
logger('payment_services', parameters: {
|
||||||
|
'service_type' : service_type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R039
|
||||||
|
wallet_recharge({@required String service_type}){
|
||||||
|
logger('wallet_recharge', parameters: {
|
||||||
|
'service_type' : service_type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R040
|
||||||
|
wallet_payment_details(){
|
||||||
|
logger('wallet_payment_details');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R041
|
||||||
|
payment_method({@required String method,type}){
|
||||||
|
logger('payment_method', parameters: {
|
||||||
|
'payment_method' : method,
|
||||||
|
'payment_type' : type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R042
|
||||||
|
payment_confirm({@required String method,type}){
|
||||||
|
logger('payment_confirm', parameters: {
|
||||||
|
'payment_method' : method,
|
||||||
|
'payment_type' : type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R043
|
||||||
|
payment_otp_confirmation({@required String method,type}){
|
||||||
|
logger('payment_otp_confirmation', parameters: {
|
||||||
|
'payment_method' : method,
|
||||||
|
'payment_type' : type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R044
|
||||||
|
payment_confirm_card_details({@required String method,type}){
|
||||||
|
logger('payment_confirm_card_details', parameters: {
|
||||||
|
'payment_method' : method,
|
||||||
|
'payment_type' : type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R045
|
||||||
|
payment_pay({@required String method,type}){
|
||||||
|
logger('payment_pay', parameters: {
|
||||||
|
'payment_method' : method,
|
||||||
|
'payment_type' : type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R046
|
||||||
|
payment_success({@required String appointment_type, clinic, hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){
|
||||||
|
logger('payment_success', parameters: {
|
||||||
|
'appointment_type' : appointment_type,
|
||||||
|
'clinic_type_online' : clinic,
|
||||||
|
'payment_method' : payment_method,
|
||||||
|
'payment_type' : payment_type,
|
||||||
|
'hospital_name' : hospital,
|
||||||
|
'transaction_number' : txn_number,
|
||||||
|
'transaction_amount' : txn_amount,
|
||||||
|
'transaction_currency' : txn_currency
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
import 'package:diplomaticquarterapp/analytics/google-analytics.dart';
|
||||||
|
|
||||||
|
class AppNav{
|
||||||
|
final name = 'app_nav';
|
||||||
|
final GALogger logger;
|
||||||
|
AppNav(this.logger);
|
||||||
|
|
||||||
|
logNavName(String value){
|
||||||
|
logger(name, parameters: {
|
||||||
|
'nav_name' : value
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
import '../google-analytics.dart';
|
||||||
|
|
||||||
|
class ErrorTracking{
|
||||||
|
|
||||||
|
final GALogger logger;
|
||||||
|
ErrorTracking(this.logger);
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
import 'package:diplomaticquarterapp/analytics/google-analytics.dart';
|
||||||
|
|
||||||
|
class HamburgerMenu{
|
||||||
|
final hamburger_menu = 'hamburger_menu';
|
||||||
|
|
||||||
|
final GALogger logger;
|
||||||
|
HamburgerMenu(this.logger);
|
||||||
|
|
||||||
|
logMenuItemClick(String value){
|
||||||
|
logger(hamburger_menu, parameters: {
|
||||||
|
'menu_item' : value
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
import '../google-analytics.dart';
|
||||||
|
|
||||||
|
class HMGServices{
|
||||||
|
final hmg_services = 'hmg_services';
|
||||||
|
|
||||||
|
final GALogger logger;
|
||||||
|
HMGServices(this.logger);
|
||||||
|
logServiceName(String value){
|
||||||
|
logger('hmg_services', parameters: {
|
||||||
|
'services_name' : value
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,101 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
import '../google-analytics.dart';
|
||||||
|
|
||||||
|
class LiveCare{
|
||||||
|
|
||||||
|
final GALogger logger;
|
||||||
|
LiveCare(this.logger);
|
||||||
|
|
||||||
|
// R030.1
|
||||||
|
livecare_immediate_consultation(){
|
||||||
|
logger('livecare_immediate_consultation');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R030.2
|
||||||
|
livecare_schedule_video_call(){
|
||||||
|
logger('livecare_schedule_video_call');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R031.1
|
||||||
|
livecare_clinic_schedule({@required String clinic}){
|
||||||
|
logger('livecare_clinic_schedule', parameters: {
|
||||||
|
'clinic_type_online' : clinic
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R031.2
|
||||||
|
livecare_immediate_consultation_clinic({@required String clinic}){
|
||||||
|
logger('livecare_immediate_consultation_clinic', parameters: {
|
||||||
|
'clinic_type_online' : clinic
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R031.2
|
||||||
|
livecare_schedule_video_call_clinic({@required String clinic}){
|
||||||
|
logger('livecare_schedule_video_call_clinic', parameters: {
|
||||||
|
'clinic_type_online' : clinic
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R032
|
||||||
|
livecare_immediate_consultation_TnC({@required String clinic}){
|
||||||
|
logger('livecare_immediate_consultation_TnC', parameters: {
|
||||||
|
'clinic_type_online' : clinic
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R033
|
||||||
|
payment_method({@required String appointment_type, clinic, payment_method, payment_type}){
|
||||||
|
logger('payment_method', parameters: {
|
||||||
|
'appointment_type' : appointment_type,
|
||||||
|
'clinic_type_online' : clinic,
|
||||||
|
'payment_method' : payment_method,
|
||||||
|
'payment_type' : payment_type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R034
|
||||||
|
payment_confirm({@required String appointment_type, clinic, payment_method, payment_type}){
|
||||||
|
logger('payment_confirm', parameters: {
|
||||||
|
'appointment_type' : appointment_type,
|
||||||
|
'clinic_type_online' : clinic,
|
||||||
|
'payment_method' : payment_method,
|
||||||
|
'payment_type' : payment_type
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R035
|
||||||
|
payment_pay({@required String appointment_type, clinic, hospital, payment_method, payment_type}){
|
||||||
|
// logger('payment_pay', parameters: {
|
||||||
|
// 'appointment_type' : appointment_type,
|
||||||
|
// 'clinic_type_online' : clinic,
|
||||||
|
// 'payment_method' : payment_method,
|
||||||
|
// 'payment_type' : payment_type,
|
||||||
|
// 'hospital_name' : hospital
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
|
||||||
|
// R036
|
||||||
|
payment_success({@required String appointment_type, clinic, hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){
|
||||||
|
// appointment_type
|
||||||
|
// clinic_type_online
|
||||||
|
// payment_method
|
||||||
|
// payment_type
|
||||||
|
// hospital_name
|
||||||
|
// transaction_number
|
||||||
|
// transaction_amount
|
||||||
|
// transaction_currency
|
||||||
|
}
|
||||||
|
|
||||||
|
// R037
|
||||||
|
livecare_immediate_consultation_payment_failed({@required String appointment_type, clinic, hospital, payment_method, payment_type, error_code, error_message}){
|
||||||
|
// appointment_type
|
||||||
|
// clinic_type_online
|
||||||
|
// payment_method
|
||||||
|
// payment_type
|
||||||
|
// hospital_name
|
||||||
|
// error_code
|
||||||
|
// error_message
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,103 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
import '../google-analytics.dart';
|
||||||
|
|
||||||
|
class LoginRegistration{
|
||||||
|
|
||||||
|
final GALogger logger;
|
||||||
|
LoginRegistration(this.logger);
|
||||||
|
// R004.1
|
||||||
|
login_register_initiate(){
|
||||||
|
logger('login_register_initiate');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R005.1
|
||||||
|
visited_alhabib_group(bool value){
|
||||||
|
// selection_type: yes/no
|
||||||
|
logger('visited_alhabib_group', parameters: {
|
||||||
|
'selection_type' : value ? 'yes' : 'no'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R006.1, R007.1, R008.1, R009.1
|
||||||
|
registration_cancel({@required String step}){
|
||||||
|
// registration_step : enter details
|
||||||
|
// registration_step : personal info
|
||||||
|
// registration_step : patient info
|
||||||
|
// fourth (verification)
|
||||||
|
logger('registration_cancel', parameters: {
|
||||||
|
'registration_step' : step
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R006.2
|
||||||
|
registration_enter_details(){
|
||||||
|
logger('registration_enter_details');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R007.2
|
||||||
|
registration_personal_info(){
|
||||||
|
logger('registration_personal_info');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R008.2
|
||||||
|
registration_patient_info(){
|
||||||
|
logger('registration_patient_info');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R009.2
|
||||||
|
registration_verification_option(){
|
||||||
|
logger('registration_verification_option');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R010
|
||||||
|
registration_confirmation({@required String by}){
|
||||||
|
// verification_method: by
|
||||||
|
logger('registration_confirmation', parameters: {
|
||||||
|
'verification_method' : by
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R011.1
|
||||||
|
login_start({@required String method}){
|
||||||
|
logger('login_start', parameters: {
|
||||||
|
'login_method' : method
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R011.2
|
||||||
|
forget_file_number(){
|
||||||
|
logger('forget_file_number');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R011.3
|
||||||
|
register_now({@required String method}){
|
||||||
|
logger('register_now', parameters: {
|
||||||
|
'login_method' : method
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R012.1, R014.1
|
||||||
|
login_successful({@required String method}){
|
||||||
|
logger('login_successful', parameters: {
|
||||||
|
'login_method' : method
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R012.4
|
||||||
|
login_unsuccessful({@required String method, error}){
|
||||||
|
logger('login_unsuccessful', parameters: {
|
||||||
|
'login_method' : method
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R013
|
||||||
|
recover_file_number(){
|
||||||
|
logger('recover_file_number');
|
||||||
|
}
|
||||||
|
|
||||||
|
// R014.2
|
||||||
|
login_with_other_account(){
|
||||||
|
logger('login_with_other_account');
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
import '../google-analytics.dart';
|
||||||
|
|
||||||
|
class OfferAndPromotion{
|
||||||
|
|
||||||
|
final GALogger logger;
|
||||||
|
OfferAndPromotion(this.logger);
|
||||||
|
|
||||||
|
final offers_and_promotion = 'offers_&_promotion';
|
||||||
|
}
|
||||||
@ -0,0 +1,119 @@
|
|||||||
|
import 'package:diplomaticquarterapp/models/Appointments/AppoimentAllHistoryResultList.dart';
|
||||||
|
|
||||||
|
import '../google-analytics.dart';
|
||||||
|
|
||||||
|
class TodoList{
|
||||||
|
|
||||||
|
final GALogger logger;
|
||||||
|
TodoList(this.logger);
|
||||||
|
|
||||||
|
// R047.1
|
||||||
|
to_do_list_pay_now(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_pay_now', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R047.2
|
||||||
|
to_do_list_more_details(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_more_details', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R048
|
||||||
|
to_do_list_confirm_payment_details(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_confirm_payment_details', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R048
|
||||||
|
to_do_list_cancel_payment_details(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_cancel_payment_details', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R049.1 // should be for appointment flow
|
||||||
|
// to_do_list_appointment_actions(AppoitmentAllHistoryResultList appointment, action){
|
||||||
|
// logger('to_do_list_pay_now', parameters: {
|
||||||
|
// 'appointment_type' : appointment.appointmentType,
|
||||||
|
// 'clinic_type_online' : appointment.clinicName,
|
||||||
|
// 'hospital_name' : appointment.projectName,
|
||||||
|
// 'doctor_name' : appointment.doctorName,
|
||||||
|
// 'payment_type' : appointment.patientType,
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
|
||||||
|
// R049.2
|
||||||
|
to_do_list_cancel_appointment(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_cancel_appointment', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R049.3
|
||||||
|
to_do_list_confirm_appointment(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_confirm_appointment', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R050
|
||||||
|
to_do_list_check_in(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_check_in', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R051
|
||||||
|
to_do_list_nfc(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_nfc', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// R052
|
||||||
|
to_do_list_nfc_cancel(AppoitmentAllHistoryResultList appointment){
|
||||||
|
logger('to_do_list_nfc_cancel', parameters: {
|
||||||
|
'appointment_type' : appointment.appointmentType,
|
||||||
|
'clinic_type_online' : appointment.clinicName,
|
||||||
|
'hospital_name' : appointment.projectName,
|
||||||
|
'doctor_name' : appointment.doctorName,
|
||||||
|
'payment_type' : appointment.patientType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue