@@ -33,6 +33,7 @@ class ConvertedInSdk {
33
33
helper?.saveDeviceId()
34
34
35
35
helper?.identifyUser()
36
+ helper?.appOpened()
36
37
Log .d(" Pixel SDK" , " $apiUrl$pixelId " )
37
38
}
38
39
@@ -56,11 +57,27 @@ class ConvertedInSdk {
56
57
helper?.addEvent(eventName, currency, total, products)
57
58
}
58
59
60
+ /* *
61
+ * This event is typically triggered when a user clicks on a push notification,
62
+ * and should pass the received campaign id to the function, you can find the campaign id
63
+ * in the payload of the push notification ["campaign_id"] with a string value
64
+ */
65
+ fun onPushNotificationClicked (campaignId : String ) {
66
+ helper?.clickOnPush(campaignId)
67
+ }
68
+
69
+ /* *
70
+ * This event is typically triggered when a user registers for the app.
71
+ */
59
72
fun registerEvent () {
60
73
helper?.registerEvent()
61
74
}
62
75
63
- // add view content event
76
+ /* *
77
+ * This event is typically triggered when a user views a specific piece of content,
78
+ * such as a product, article, or video. By tracking ViewContent events, developers can gain
79
+ * insights into what content users are engaging with most and optimize their content strategy accordingly.
80
+ */
64
81
fun viewContentEvent (
65
82
currency : String? ,
66
83
total : String? ,
@@ -69,7 +86,11 @@ class ConvertedInSdk {
69
86
helper?.viewContentEvent(currency, total, products)
70
87
}
71
88
72
- // add view page event
89
+ /* *
90
+ * This event is triggered when a user views a page or screen within the app.
91
+ * By tracking PageView events, developers can gain insights into how users navigate through
92
+ * their app and optimize the user experience accordingly.
93
+ */
73
94
fun pageViewEvent (
74
95
currency : String? ,
75
96
total : String? ,
@@ -78,7 +99,13 @@ class ConvertedInSdk {
78
99
helper?.pageViewEvent(currency, total, products)
79
100
}
80
101
81
- // add to cart event
102
+ /* *
103
+ * This event is triggered when a user adds a product to their shopping cart.
104
+ * By tracking AddToCart events, developers can gain insights into which products are most
105
+ * popular and optimize their product offering and pricing accordingly. The AddToCart event i
106
+ * s often paired with other e-commerce events such as Purchase or Checkout events, and is an
107
+ * important component of user analysis and e-commerce optimization.
108
+ */
82
109
fun addToCartEvent (
83
110
currency : String? ,
84
111
total : String? ,
@@ -87,7 +114,13 @@ class ConvertedInSdk {
87
114
helper?.addToCartEvent(currency, total, products)
88
115
}
89
116
90
- // add init checkout event
117
+ /* *
118
+ * This event is triggered when a user begins the process of checking out and entering their
119
+ * payment and shipping information. By tracking InitiateCheckout events, developers can gain
120
+ * insights into how users interact with the checkout process and identify areas for improvement
121
+ * to increase conversion rates. The InitiateCheckout event is often paired with other e-commerce
122
+ * events such as AddToCart or Purchase events, and is an important component of user analysis and e-commerce optimization.
123
+ */
91
124
fun initiateCheckoutEvent (
92
125
currency : String? ,
93
126
total : String? ,
@@ -96,7 +129,14 @@ class ConvertedInSdk {
96
129
helper?.initiateCheckoutEvent(currency, total, products)
97
130
}
98
131
99
- // add purchase event
132
+ /* *
133
+ *This event is triggered when a user completes a purchase and successfully makes a payment
134
+ * for a product or service. By tracking Purchase events, developers can gain insights into
135
+ * which products are most popular and identify patterns in user behavior to optimize the
136
+ * checkout process and increase sales. The Purchase event is often paired with other e-commerce
137
+ * events such as AddToCart or InitiateCheckout events, and is an important component of
138
+ * user analysis and e-commerce optimization.
139
+ */
100
140
fun purchaseEvent (
101
141
currency : String? ,
102
142
total : String? ,
0 commit comments