From 770a6182311502d8abeeadff53ae229224efea07 Mon Sep 17 00:00:00 2001 From: Egor Danchenkov Date: Thu, 25 Jun 2020 14:16:57 +0300 Subject: [PATCH] Update GA, send version event --- index.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 0305e32..bfa8752 100644 --- a/index.html +++ b/index.html @@ -266,13 +266,13 @@ wv.addEventListener('dom-ready', function () { if (!initialised) { var controls = { - backButton : document.getElementById('back-btn'), - refreshButton : document.getElementById('refresh-btn'), - forwardButton : document.getElementById('forward-btn'), - preferenceButton : document.getElementById('pref-btn'), - PIPMode : document.getElementById('PIP-btn'), - PIPDragArea : document.querySelector('.PIP-drag-area'), - desktopModeButton : document.getElementById('desktop-mode-btn') + backButton: document.getElementById('back-btn'), + refreshButton: document.getElementById('refresh-btn'), + forwardButton: document.getElementById('forward-btn'), + preferenceButton: document.getElementById('pref-btn'), + PIPMode: document.getElementById('PIP-btn'), + PIPDragArea: document.querySelector('.PIP-drag-area'), + desktopModeButton: document.getElementById('desktop-mode-btn') }; initialised = true; @@ -298,13 +298,15 @@ (function () { 'use strict'; var ElectronCookies = require('@exponent/electron-cookies'); - ElectronCookies.enable({ origin : 'https://MenuTube.electron.app.local.com' }); + ElectronCookies.enable({ origin: 'https://MenuTube.electron.app.local.com' }); ga('create', 'UA-92232645-1', 'auto'); ga('set', 'location', 'https://MenuTube.electron.app.local.com/'); ga('set', 'checkProtocolTask', null); ga('send', 'pageview'); ga('set', 'appVersion', remote && remote.app && remote.app.getVersion()); + ga('send', 'appVersion', remote && remote.app && remote.app.getVersion()); + })(); }, 500) }