|
|
|
|
@ -5,9 +5,14 @@ import React from "react";
|
|
|
|
|
import SupportStore from "../stores/SupportStore";
|
|
|
|
|
import { RouteHandler } from "react-router";
|
|
|
|
|
import ga from "react-google-analytics";
|
|
|
|
|
|
|
|
|
|
ga("create", "UA-62785624-1", "auto");
|
|
|
|
|
ga("send", "pageview");
|
|
|
|
|
|
|
|
|
|
if (process.env.DISABLE_GA != 'yes') {
|
|
|
|
|
ga("create", "UA-62785624-1", "auto");
|
|
|
|
|
ga("send", "pageview");
|
|
|
|
|
console.log("Google Analytics ON");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
console.log("Google Analytics OFF");
|
|
|
|
|
|
|
|
|
|
export default class App extends React.Component {
|
|
|
|
|
constructor() {
|
|
|
|
|
@ -89,7 +94,7 @@ export default class App extends React.Component {
|
|
|
|
|
</p>
|
|
|
|
|
</footer>
|
|
|
|
|
<script>FilePizza()</script>
|
|
|
|
|
<ga.Initializer />
|
|
|
|
|
{ process.env.DISABLE_GA != 'yes' && <ga.Initializer /> }
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
|