replace owa with google analytics

This commit is contained in:
ray 2020-10-20 20:57:38 +03:00
parent 0df33a8626
commit af5d61ac00
3 changed files with 8 additions and 27 deletions

View File

@ -1,23 +1,17 @@
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XCR12ZM2L1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XCR12ZM2L1', { 'anonymize_ip': true });
</script>
{{ HEAD }}
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
</body>
<script type="text/javascript">
var owa_baseUrl = 'https://owa.isnet.uk/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setSiteId', '0c3a9f11563be70da80f493a590b46d1']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
</script>
</html>

View File

@ -69,7 +69,6 @@ module.exports = {
*/
plugins: [
{ src: '~/plugins/Vuelidate' },
// { src: '~/plugins/owa.js', mode: 'client' }
],
/*

View File

@ -1,12 +0,0 @@
/* 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']);
}
})
}