@@ -50,7 +50,7 @@ export default <%= options.blockLoading ? 'async ' : ''%>(context, inject) => {
50
50
// Log a warning when piwik doesnt become available within 10s (in debug mode)
51
51
const hasPiwikCheck = setTimeout ( ( ) => {
52
52
if ( ! window . Piwik ) {
53
- debug ( ` window.Piwik was not set within timeout` )
53
+ debug ( ' window.Piwik was not set within timeout' )
54
54
}
55
55
} , 10000 )
56
56
< % } % >
@@ -67,7 +67,7 @@ export default <%= options.blockLoading ? 'async ' : ''%>(context, inject) => {
67
67
< % if ( debug || options . debug ) { % >
68
68
clearTimeout ( hasPiwikCheck )
69
69
if ( _windowPiwik ) {
70
- debug ( ` window . Piwik is already defined ` )
70
+ debug ( ' window . Piwik is already defined ' )
71
71
}
72
72
< % } % >
73
73
@@ -129,7 +129,7 @@ export default <%= options.blockLoading ? 'async ' : ''%>(context, inject) => {
129
129
}
130
130
131
131
< % if ( debug || options . debug ) { % >
132
- debug ( `Tell matomo to track pageview ${ to . fullPath } ` , document . title )
132
+ debug ( `Tell matomo to track pageview ${ to . fullPath } - ${ document . title } ` )
133
133
134
134
< % } % >
135
135
// tell Matomo to add a page view (doesnt do anything if tracker is disabled)
@@ -142,7 +142,6 @@ export default <%= options.blockLoading ? 'async ' : ''%>(context, inject) => {
142
142
context . app . head . changed = ( ...args ) => {
143
143
< % if ( debug || options . debug ) { % >
144
144
clearTimeout ( metaChangeTimeout )
145
- console . log
146
145
if ( ! args [ 0 ] . title ) {
147
146
warn ( `title was updated but empty for ${ trackOnMetaChange && trackOnMetaChange . to . fullPath || 'unknown route' } ` )
148
147
}
@@ -193,7 +192,7 @@ console.log
193
192
function createTracker ( delayedCalls = [ ] ) {
194
193
if ( ! window . Piwik ) {
195
194
< % if ( debug || options . debug ) { % >
196
- debug ( ` window.Piwik not initialized, unable to create a tracker` )
195
+ debug ( ' window.Piwik not initialized, unable to create a tracker' )
197
196
< % } % >
198
197
return
199
198
}
@@ -214,7 +213,7 @@ function createTracker (delayedCalls = []) {
214
213
}
215
214
216
215
< % if ( debug || options . debug ) { % >
217
- debug ( ` Created tracker for siteId <%= options.siteId %> to <%= options.trackerUrl %>` )
216
+ debug ( ' Created tracker for siteId <%= options.siteId %> to <%= options.trackerUrl %>' )
218
217
< % if ( options . verbose ) { % >
219
218
// wrap all Piwik functions for verbose logging
220
219
Object . keys ( tracker ) . forEach ( ( key ) => {
0 commit comments