File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/PageBuilderAdminAnalytics/view/adminhtml/web/js/page-builder Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ define(['underscore'], function (_underscore) {
32
32
window . _satellite . track ( 'page' ) ;
33
33
}
34
34
35
- if ( ! _underscore . isUndefined ( args . contentType ) && ! _underscore . isUndefined ( args . contentType . config ) ) {
35
+ if ( ! _underscore . isUndefined ( args ) && ! _underscore . isUndefined ( args . contentType ) &&
36
+ ! _underscore . isUndefined ( args . contentType . config )
37
+ ) {
36
38
event = {
37
39
element : args . contentType . config . label ,
38
40
type : args . contentType . config . name ,
@@ -46,7 +48,7 @@ define(['underscore'], function (_underscore) {
46
48
47
49
console . log ( 'EVENT:' , event ) ;
48
50
49
- if ( isAdminAnalyticsEnabled ) {
51
+ if ( isAdminAnalyticsEnabled && ! _underscore . isUndefined ( window . digitalData . events ) ) {
50
52
window . digitalData . events . push ( event ) ;
51
53
window . _satellite . track ( 'event' ) ;
52
54
}
You can’t perform that action at this time.
0 commit comments