mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
enable recordDynamicEvent func to passed attribute arg
This commit is contained in:
@@ -44,10 +44,10 @@ function initAwsMobileAnalytics () {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function recordDynamicCustomEvent (type) {
|
function recordDynamicCustomEvent (type, options = {}) {
|
||||||
if (process.env.NODE_ENV !== 'production' || !ConfigManager.default.get().amaEnabled) return
|
if (process.env.NODE_ENV !== 'production' || !ConfigManager.default.get().amaEnabled) return
|
||||||
try {
|
try {
|
||||||
mobileAnalyticsClient.recordEvent(type)
|
mobileAnalyticsClient.recordEvent(type, options)
|
||||||
} catch (analyticsError) {
|
} catch (analyticsError) {
|
||||||
if (analyticsError instanceof ReferenceError) {
|
if (analyticsError instanceof ReferenceError) {
|
||||||
console.log(analyticsError.name + ': ' + analyticsError.message)
|
console.log(analyticsError.name + ': ' + analyticsError.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user