marc-leopold/app/plugins/owa.js

13 lines
276 B
JavaScript
Raw Permalink Normal View History

2020-05-05 16:54:58 +00:00
/* eslint-disable */
export default ({ app }) => {
if (process.env.NODE_ENV !== 'production') return
app.router.afterEach((to, from) => {
if (window.owa_cmds) {
window.owa_cmds.push(['trackPageView']);
window.owa_cmds.push(['trackClicks']);
}
2020-05-05 16:54:58 +00:00
})
}