Skip to content

Commit

Permalink
Update GA, send version event
Browse files Browse the repository at this point in the history
  • Loading branch information
edanchenkov committed Jun 25, 2020
1 parent 31ecbab commit 770a618
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
}
Expand Down

0 comments on commit 770a618

Please sign in to comment.