Showing
9 changed files
with
25 additions
and
2 deletions
No preview for this file type
... | @@ -116,6 +116,7 @@ import SwiftEventBus | ... | @@ -116,6 +116,7 @@ import SwiftEventBus |
116 | alert.addAction(UIAlertAction(title: "Ενεργοποίηση", style: .default, handler: { action in | 116 | alert.addAction(UIAlertAction(title: "Ενεργοποίηση", style: .default, handler: { action in |
117 | switch action.style{ | 117 | switch action.style{ |
118 | case .default: | 118 | case .default: |
119 | + swiftApi().logTrackersEvent("click", ("ActivateContextual:" + (self.ccms?._sessionId ?? ""))) | ||
119 | self.submitOrderRequest() | 120 | self.submitOrderRequest() |
120 | 121 | ||
121 | case .cancel: | 122 | case .cancel: | ... | ... |
... | @@ -274,6 +274,11 @@ import AVFoundation | ... | @@ -274,6 +274,11 @@ import AVFoundation |
274 | // MARK: - Actions | 274 | // MARK: - Actions |
275 | 275 | ||
276 | @IBAction func redeemButtomAction(_ sender: Any) { | 276 | @IBAction func redeemButtomAction(_ sender: Any) { |
277 | + let couponSetData: swiftApi.CouponSetItemModel? = self.coupon?.couponset_data | ||
278 | + let couponName = couponSetData?.name ?? "" | ||
279 | + | ||
280 | + swiftApi().logTrackersEvent("click", ("ShareCoupon:" + couponName)) | ||
281 | + | ||
277 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 282 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
278 | let vc = storyboard.instantiateViewController(withIdentifier: "ShareViewController") as! SwiftWarplyFramework.ShareViewController | 283 | let vc = storyboard.instantiateViewController(withIdentifier: "ShareViewController") as! SwiftWarplyFramework.ShareViewController |
279 | vc.coupon = self.coupon | 284 | vc.coupon = self.coupon |
... | @@ -292,6 +297,8 @@ import AVFoundation | ... | @@ -292,6 +297,8 @@ import AVFoundation |
292 | } | 297 | } |
293 | 298 | ||
294 | @IBAction func mapButtonAction(_ sender: Any) { | 299 | @IBAction func mapButtonAction(_ sender: Any) { |
300 | + swiftApi().logTrackersEvent("click", "SeeShops") | ||
301 | + | ||
295 | let vc = SwiftWarplyFramework.MapsViewController(nibName: "MapsViewController", bundle: Bundle(for: MyEmptyClass.self)) | 302 | let vc = SwiftWarplyFramework.MapsViewController(nibName: "MapsViewController", bundle: Bundle(for: MyEmptyClass.self)) |
296 | vc.couponSet = coupon?.couponset_data | 303 | vc.couponSet = coupon?.couponset_data |
297 | self.navigationController?.pushViewController(vc, animated: true) | 304 | self.navigationController?.pushViewController(vc, animated: true) | ... | ... |
... | @@ -294,6 +294,8 @@ import SwiftEventBus | ... | @@ -294,6 +294,8 @@ import SwiftEventBus |
294 | 294 | ||
295 | @IBAction func redeemButtomAction(_ sender: Any) { | 295 | @IBAction func redeemButtomAction(_ sender: Any) { |
296 | // SwiftEventBus.post("couponRedeem", sender: coupon) | 296 | // SwiftEventBus.post("couponRedeem", sender: coupon) |
297 | + | ||
298 | + swiftApi().logTrackersEvent("click", ("RetrieveCoupon:" + (couponset?.uuid ?? ""))) | ||
297 | 299 | ||
298 | redeemCouponSetRequest(uuid: couponset?.uuid ?? "", communication_uuid: campaign?.session_uuid ?? "") | 300 | redeemCouponSetRequest(uuid: couponset?.uuid ?? "", communication_uuid: campaign?.session_uuid ?? "") |
299 | 301 | ... | ... |
... | @@ -96,13 +96,15 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -96,13 +96,15 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ |
96 | public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | 96 | public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { |
97 | 97 | ||
98 | // SwiftEventBus.post("couponBarcodePressed", sender: coupons[indexPath.row]) | 98 | // SwiftEventBus.post("couponBarcodePressed", sender: coupons[indexPath.row]) |
99 | - | 99 | + |
100 | // Logs | 100 | // Logs |
101 | let couponSetData: swiftApi.CouponSetItemModel? = coupons[indexPath.row].couponset_data | 101 | let couponSetData: swiftApi.CouponSetItemModel? = coupons[indexPath.row].couponset_data |
102 | print("Coupon clicked: " + (coupons[indexPath.row].coupon ?? "")) | 102 | print("Coupon clicked: " + (coupons[indexPath.row].coupon ?? "")) |
103 | print("Coupon Name clicked: " + (couponSetData?.name ?? "")) | 103 | print("Coupon Name clicked: " + (couponSetData?.name ?? "")) |
104 | print("Coupon Description clicked: " + (couponSetData?.short_description ?? "")) | 104 | print("Coupon Description clicked: " + (couponSetData?.short_description ?? "")) |
105 | print("Coupon Expiration clicked: " + (coupons[indexPath.row].expiration ?? "")) | 105 | print("Coupon Expiration clicked: " + (coupons[indexPath.row].expiration ?? "")) |
106 | + | ||
107 | + swiftApi().logTrackersEvent("click", ("Coupon:" + (couponSetData?.name ?? ""))) | ||
106 | 108 | ||
107 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 109 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
108 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! SwiftWarplyFramework.CouponBarcodeViewController | 110 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! SwiftWarplyFramework.CouponBarcodeViewController | ... | ... |
... | @@ -115,12 +115,16 @@ import SwiftEventBus | ... | @@ -115,12 +115,16 @@ import SwiftEventBus |
115 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 115 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
116 | 116 | ||
117 | if (index == 1) { | 117 | if (index == 1) { |
118 | + swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "TabShared")) | ||
119 | + | ||
118 | let analysisVC = storyboard.instantiateViewController(withIdentifier:"SharingHistoryViewController") as! SwiftWarplyFramework.SharingHistoryViewController | 120 | let analysisVC = storyboard.instantiateViewController(withIdentifier:"SharingHistoryViewController") as! SwiftWarplyFramework.SharingHistoryViewController |
119 | analysisVC.index = index; | 121 | analysisVC.index = index; |
120 | 122 | ||
121 | return analysisVC; | 123 | return analysisVC; |
122 | } | 124 | } |
123 | - | 125 | + |
126 | + swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "TabExpired")) | ||
127 | + | ||
124 | let analysisVC = storyboard.instantiateViewController(withIdentifier:"HistoryViewController") as! SwiftWarplyFramework.HistoryViewController | 128 | let analysisVC = storyboard.instantiateViewController(withIdentifier:"HistoryViewController") as! SwiftWarplyFramework.HistoryViewController |
125 | analysisVC.index = index; | 129 | analysisVC.index = index; |
126 | 130 | ... | ... |
... | @@ -273,6 +273,9 @@ import MapKit | ... | @@ -273,6 +273,9 @@ import MapKit |
273 | 273 | ||
274 | public func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { | 274 | public func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { |
275 | let merchant = view.annotation as? MerchantAnnotation | 275 | let merchant = view.annotation as? MerchantAnnotation |
276 | + let merchantModel = merchant!.model | ||
277 | + swiftApi().logTrackersEvent("click", ("ShopsScreenMarker:" + (merchantModel._uuid))) | ||
278 | + | ||
276 | loadPinDetailsView(merchant!) | 279 | loadPinDetailsView(merchant!) |
277 | showPinDetailsView() | 280 | showPinDetailsView() |
278 | } | 281 | } | ... | ... |
... | @@ -169,6 +169,9 @@ import SwiftEventBus | ... | @@ -169,6 +169,9 @@ import SwiftEventBus |
169 | alert.addAction(UIAlertAction(title: "Αποστολή", style: .default, handler: { action in | 169 | alert.addAction(UIAlertAction(title: "Αποστολή", style: .default, handler: { action in |
170 | switch action.style{ | 170 | switch action.style{ |
171 | case .default: | 171 | case .default: |
172 | + let couponSetData: swiftApi.CouponSetItemModel? = self.coupon?.couponset_data | ||
173 | + let couponName = couponSetData?.name ?? "" | ||
174 | + swiftApi().logTrackersEvent("click", ("ShareCoupon:" + couponName)) | ||
172 | self.cosmoteCouponSharingRequest() | 175 | self.cosmoteCouponSharingRequest() |
173 | 176 | ||
174 | case .cancel: | 177 | case .cancel: | ... | ... |
... | @@ -170,6 +170,7 @@ import SwiftEventBus | ... | @@ -170,6 +170,7 @@ import SwiftEventBus |
170 | alert.addAction(UIAlertAction(title: "Ενεργοποίηση", style: .default, handler: { action in | 170 | alert.addAction(UIAlertAction(title: "Ενεργοποίηση", style: .default, handler: { action in |
171 | switch action.style{ | 171 | switch action.style{ |
172 | case .default: | 172 | case .default: |
173 | + swiftApi().logTrackersEvent("click", ("ActivateTelco:" + (self.ccms?._sessionId ?? ""))) | ||
173 | self.submitOrderRequest() | 174 | self.submitOrderRequest() |
174 | 175 | ||
175 | case .cancel: | 176 | case .cancel: | ... | ... |
-
Please register or login to post a comment