if (process.BROWSER_BUILD) {
    (function (i, s, o, g, r, a, m) {
        i.GoogleAnalyticsObject = r; i[r] = i[r] || function () {
            (i[r].q = i[r].q || []).push(arguments);
        }, i[r].l = Number(new Date()); a = s.createElement(o),
        m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m);
    })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
    ga('create', 'UA-89526435-1', 'auto');
    ga('require', 'linkid', {
        cookieName: '_ela',
        duration: 300,
        levels: 10
    });
}

@@ -1,32 +1,236 @@
-if (process.BROWSER_BUILD) %7B
+// https://nuxtjs.org/faq/google-analytics/%0A%0A/*%0A ** Only run on client-side and only in production mode%0A */%0Aif (process.BROWSER_BUILD && process.env.NODE_ENV === 'production') %7B%0A    /*%0A     ** Include Google Analytics Script%0A     */
 %0A   
@@ -243,43 +243,27 @@
 tion
- 
 (i,
- 
 s,
- 
 o,
- 
 g,
- 
 r,
- 
 a,
- 
 m)
- %7B%0A        i.
+%7Bi%5B'
 Goog
@@ -283,37 +283,32 @@
 ject
- = 
+'%5D=
 r;
- 
 i%5Br%5D
- = 
+=
 i%5Br%5D
- 
 %7C%7C
- 
 function
  () 
@@ -307,12 +307,10 @@
 tion
- 
 ()
- 
 %7B%0A  
@@ -330,21 +330,17 @@
 r%5D.q
- = 
+=
 i%5Br%5D.q
- 
 %7C%7C
- 
 %5B%5D).
@@ -358,37 +358,19 @@
 nts)
-;%0A        
 %7D,
- 
 i%5Br%5D.l
- = Number(
+=1*
 new 
@@ -379,15 +379,11 @@
 te()
-); a = 
+;a=
 s.cr
@@ -407,19 +407,17 @@
        m
- = 
+=
 s.getEle
@@ -441,33 +441,26 @@
 %5B0%5D;
- 
 a.async
- = 
+=
 1;
- 
 a.src
- = 
+=
 g;
- 
 m.pa
@@ -487,12 +487,10 @@
 e(a,
- 
 m)
-;
 %0A   
@@ -500,17 +500,16 @@
 (window,
- 
 document
@@ -509,17 +509,16 @@
 ocument,
- 
 'script'
@@ -518,17 +518,16 @@
 script',
- 
 'https:/
@@ -570,16 +570,59 @@
 js',
- 
 'ga');%0A
+    /*%0A     ** Set the current page%0A     */%0A
     
@@ -658,17 +658,16 @@
  'auto')
-;
 %0A    ga(
@@ -671,106 +671,409 @@
 ga('
-require', 'linkid', %7B%0A        cookieName: '_ela',%0A        duration: 300,%0A        levels: 10%0A    %7D);%0A%7D%0A
+send', 'pageview')%0A    /*%0A     ** When the app is mounted%0A     */%0A    window.onNuxtReady((app) =%3E %7B%0A        /*%0A         ** Every time the route changes%0A         */%0A        app.$nuxt.$on('routeChanged', (to, from) =%3E %7B%0A            /*%0A             ** We tell Google Analytic to add a page view%0A             */%0A            ga('set', 'page', to.fullPath)%0A            ga('send', 'pageview')%0A        %7D)%0A    %7D)%0A%7D

Improve ga