Fix analytics
This commit is contained in:
parent
e40c63b9e7
commit
ad72ebd4bb
15
demo/dist/demo.js
vendored
15
demo/dist/demo.js
vendored
@ -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');
|
||||
}
|
||||
})();
|
||||
|
||||
|
2
demo/dist/demo.js.map
vendored
2
demo/dist/demo.js.map
vendored
File diff suppressed because one or more lines are too long
2
demo/dist/demo.min.js
vendored
2
demo/dist/demo.min.js
vendored
File diff suppressed because one or more lines are too long
2
demo/dist/demo.min.js.map
vendored
2
demo/dist/demo.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -33,7 +33,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
|
||||
<!-- Docs styles -->
|
||||
<link rel="stylesheet" href="dist/demo.css?v=2" />
|
||||
<link rel="stylesheet" href="dist/demo.css?2" />
|
||||
|
||||
<!-- Preload -->
|
||||
<link
|
||||
@ -285,6 +285,16 @@
|
||||
|
||||
<!-- Docs script -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-132699580-1"></script>
|
||||
<script src="dist/demo.js" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
if (window.location.host === 'plyr.io') {
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
window.dataLayer.push(arguments);
|
||||
}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-132699580-1');
|
||||
}
|
||||
</script>
|
||||
<script src="dist/demo.js?2" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -276,13 +276,4 @@ import Raven from 'raven-js';
|
||||
if (env.prod) {
|
||||
Raven.config('https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555').install();
|
||||
}
|
||||
|
||||
// Google analytics
|
||||
// For demo site (https://plyr.io) only
|
||||
if (env.prod) {
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
const gtag = () => window.dataLayer.push(arguments); // eslint-disable-line
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-132699580-1');
|
||||
}
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user