Permalink
Browse files

Add ember-cli google analytics plugin.

  • Loading branch information...
khaledalam committed Sep 8, 2018
1 parent 0f0a326 commit 8bb183bb817b158f97bd20db7be624a4446ec224
Showing with 23 additions and 9 deletions.
  1. +1 −1 www/app/index.html
  2. +2 −1 www/app/router.js
  3. +6 −4 www/config/environment.js
  4. +10 −0 www/package-lock.json
  5. +4 −3 www/package.json
View
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{content-for "head"}}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -10,6 +9,7 @@
<meta name="description" content="High profitability Webchain mining pool"/>
<meta name="keywords" content="ethereum, pool, mining, cryptocurrency"/>
<script src="https://cdn.polyfill.io/v1/polyfill.min.js?features=Intl.~locale.en"></script>
{{content-for "head"}}
<link rel="stylesheet" href="assets/vendor.css">
<link rel="stylesheet" href="assets/pool.css">
{{content-for "head-footer"}}
View
@@ -1,7 +1,8 @@
import Ember from 'ember';
import config from './config/environment';
import googlePageview from './mixins/google-pageview';
var Router = Ember.Router.extend({
var Router = Ember.Router.extend(googlePageview, {
location: config.locationType
});
View
@@ -30,14 +30,12 @@ module.exports = function(environment) {
PayoutThreshold: '5 WEB',
// For network hashrate (change for your favourite fork)
BlockTime: 12.0,
// For Google Analytics
AnalyticsCode: "UA-1111111-00"
BlockTime: 12.0
}
};
if (environment === 'development') {
/* Override ApiUrl just for development, while you are customizing
frontend markup and css theme on your workstation.
*/
@@ -63,6 +61,10 @@ module.exports = function(environment) {
if (environment === 'production') {
// For Google Analytics
ENV.googleAnalytics = {
webPropertyId: 'UA-XXXX-Y'
};
}
return ENV;
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -25,7 +25,9 @@
"ember-cli": "2.4.3",
"ember-cli-app-version": "^1.0.0",
"ember-cli-babel": "^5.1.6",
"ember-cli-cookie": "^0.2.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-google-analytics": "^1.5.0",
"ember-cli-htmlbars": "^1.0.3",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.4.0",
@@ -34,10 +36,9 @@
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-export-application-global": "^1.0.5",
"ember-intl": "2.9.3",
"ember-load-initializers": "^0.5.1",
"ember-resolver": "^2.0.3",
"loader.js": "^4.0.1",
"ember-intl": "2.9.3",
"ember-cli-cookie": "^0.2.0"
"loader.js": "^4.0.1"
}
}

0 comments on commit 8bb183b

Please sign in to comment.