From f927d26ce7150a12422a28e0c32edbb399632571 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Thu, 17 Jan 2019 11:37:19 +1100 Subject: v3.4.8 - Calling customized controls function with proper arguments (thanks @a60814billy) --- demo/dist/demo.js | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'demo/dist/demo.js') diff --git a/demo/dist/demo.js b/demo/dist/demo.js index e3d4e6c2..a2ba21c4 100644 --- a/demo/dist/demo.js +++ b/demo/dist/demo.js @@ -4325,30 +4325,21 @@ typeof navigator === "object" && (function () { } // Google analytics // For demo site (https://plyr.io) only - /* eslint-disable */ - if (env.prod) { - (function (i, s, o, g, r, a, m) { - i.GoogleAnalyticsObject = r; + window.dataLayer = window.dataLayer || []; - i[r] = i[r] || function () { - (i[r].q = i[r].q || []).push(arguments); - }; + var gtag = function gtag() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - i[r].l = 1 * 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'); + window.dataLayer.push(args); + }; - window.ga('create', 'UA-40881672-11', 'auto'); - window.ga('send', 'pageview'); + gtag('js', new Date()); + gtag('config', 'UA-132699580-1'); } - /* eslint-enable */ - })(); }()); -- cgit v1.2.3 From e40c63b9e7985f52c7e68f5cb6aeaef9ff5ca9d7 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Thu, 17 Jan 2019 12:08:25 +1100 Subject: Fix GA --- demo/dist/demo.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'demo/dist/demo.js') diff --git a/demo/dist/demo.js b/demo/dist/demo.js index a2ba21c4..53dbcc64 100644 --- a/demo/dist/demo.js +++ b/demo/dist/demo.js @@ -4089,7 +4089,7 @@ typeof navigator === "object" && (function () { var Client = raven; singleton.Client = Client; - // ========================================================================== + var _arguments = arguments; (function () { var host = window.location.host; @@ -4330,11 +4330,7 @@ typeof navigator === "object" && (function () { window.dataLayer = window.dataLayer || []; var gtag = function gtag() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - window.dataLayer.push(args); + window.dataLayer.push(_arguments); // eslint-disable-line }; gtag('js', new Date()); -- cgit v1.2.3 From ad72ebd4bbf487e56884d264a4bb13119fb687b5 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Thu, 17 Jan 2019 18:50:26 +1100 Subject: Fix analytics --- demo/dist/demo.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'demo/dist/demo.js') diff --git a/demo/dist/demo.js b/demo/dist/demo.js index 53dbcc64..b5906cb2 100644 --- a/demo/dist/demo.js +++ b/demo/dist/demo.js @@ -4089,7 +4089,7 @@ typeof navigator === "object" && (function () { var Client = raven; singleton.Client = Client; - var _arguments = arguments; + // ========================================================================== (function () { var host = window.location.host; @@ -4322,19 +4322,6 @@ typeof navigator === "object" && (function () { if (env.prod) { singleton.config('https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555').install(); - } // Google analytics - // For demo site (https://plyr.io) only - - - if (env.prod) { - window.dataLayer = window.dataLayer || []; - - var gtag = function gtag() { - window.dataLayer.push(_arguments); // eslint-disable-line - }; - - gtag('js', new Date()); - gtag('config', 'UA-132699580-1'); } })(); -- cgit v1.2.3 From c44351507f0a06578a1fee10185117e7df64ece9 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 26 Jan 2019 16:31:47 +1100 Subject: Plugin tweaks for ads and previews --- demo/dist/demo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'demo/dist/demo.js') diff --git a/demo/dist/demo.js b/demo/dist/demo.js index 2fe063fc..7f87ffc4 100644 --- a/demo/dist/demo.js +++ b/demo/dist/demo.js @@ -4156,8 +4156,10 @@ typeof navigator === "object" && (function () { google: 'AIzaSyDrNwtN3nLH_8rjCmu5Wq3ZCm4MNAVdc0c' }, ads: { - enabled: env.prod || env.dev, - publisherId: '918848828995742' + enabled: true, + // env.prod || env.dev, + publisherId: '918848828995742', + tagUrl: 'https://pubads.g.doubleclick.net/gampad/live/ads?sz=640x360&iu=/21736521837/ovo/web&impl=s&gdfp_req=1&env=vp&output=vast&cust_params=usergroup%3Dannon%26content-type%3Don-demand&cmsid=2490180&vid=3788' }, previewThumbnails: { enabled: true, -- cgit v1.2.3 From 52be5ae889a56b87f526eed92c7afab985edb729 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 26 Jan 2019 16:35:42 +1100 Subject: Built files --- demo/dist/demo.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'demo/dist/demo.js') diff --git a/demo/dist/demo.js b/demo/dist/demo.js index 7f87ffc4..2fe063fc 100644 --- a/demo/dist/demo.js +++ b/demo/dist/demo.js @@ -4156,10 +4156,8 @@ typeof navigator === "object" && (function () { google: 'AIzaSyDrNwtN3nLH_8rjCmu5Wq3ZCm4MNAVdc0c' }, ads: { - enabled: true, - // env.prod || env.dev, - publisherId: '918848828995742', - tagUrl: 'https://pubads.g.doubleclick.net/gampad/live/ads?sz=640x360&iu=/21736521837/ovo/web&impl=s&gdfp_req=1&env=vp&output=vast&cust_params=usergroup%3Dannon%26content-type%3Don-demand&cmsid=2490180&vid=3788' + enabled: env.prod || env.dev, + publisherId: '918848828995742' }, previewThumbnails: { enabled: true, -- cgit v1.2.3