├── static └── .gitkeep ├── src ├── store │ ├── actions.js │ ├── getters.js │ ├── mutations.js │ └── store.js ├── assets │ ├── 1.png │ ├── blog.png │ ├── logo.png │ ├── academy.png │ ├── avatar.png │ ├── cloud.png │ ├── ga_app.png │ ├── ga_demo.png │ ├── bigquery.png │ ├── campaign.png │ ├── debugger.png │ ├── embed_api.png │ ├── optimize.png │ ├── active-users.PNG │ ├── attribution.png │ ├── data_studio.png │ ├── ga_partners.png │ ├── help_center.png │ ├── tag_manager.png │ ├── users-report.PNG │ ├── users-report.png │ ├── bounce-report.png │ ├── custom_alerts.png │ ├── reporting_api.png │ ├── tag_assistant.png │ ├── duration-report.png │ ├── sessions-report.PNG │ └── sessions-report.png ├── pages │ ├── Duplicates.vue │ ├── Behaviour.vue │ ├── Dashboard.vue │ ├── Conversions.vue │ ├── Audience.vue │ ├── RealTime.vue │ ├── Acquistion.vue │ ├── Discover.vue │ └── Home.vue ├── components │ ├── HelloWorld.vue │ ├── Footer.vue │ ├── LoginFrom.vue │ ├── ModelCreateContact.vue │ ├── GoogleKeep.vue │ ├── Navbar.vue │ └── GoogleContacts.vue ├── main.js ├── App.vue └── router │ └── index.js ├── config ├── prod.env.js ├── dev.env.js └── index.js ├── .editorconfig ├── .gitignore ├── .babelrc ├── .postcssrc.js ├── index.html ├── README.md └── package.json /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/store/actions.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/store/getters.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = { 3 | NODE_ENV: '"production"' 4 | } 5 | -------------------------------------------------------------------------------- /src/assets/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/1.png -------------------------------------------------------------------------------- /src/assets/blog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/blog.png -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/logo.png -------------------------------------------------------------------------------- /src/assets/academy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/academy.png -------------------------------------------------------------------------------- /src/assets/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/avatar.png -------------------------------------------------------------------------------- /src/assets/cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/cloud.png -------------------------------------------------------------------------------- /src/assets/ga_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/ga_app.png -------------------------------------------------------------------------------- /src/assets/ga_demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/ga_demo.png -------------------------------------------------------------------------------- /src/assets/bigquery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/bigquery.png -------------------------------------------------------------------------------- /src/assets/campaign.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/campaign.png -------------------------------------------------------------------------------- /src/assets/debugger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/debugger.png -------------------------------------------------------------------------------- /src/assets/embed_api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/embed_api.png -------------------------------------------------------------------------------- /src/assets/optimize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/optimize.png -------------------------------------------------------------------------------- /src/assets/active-users.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/active-users.PNG -------------------------------------------------------------------------------- /src/assets/attribution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/attribution.png -------------------------------------------------------------------------------- /src/assets/data_studio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/data_studio.png -------------------------------------------------------------------------------- /src/assets/ga_partners.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/ga_partners.png -------------------------------------------------------------------------------- /src/assets/help_center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/help_center.png -------------------------------------------------------------------------------- /src/assets/tag_manager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/tag_manager.png -------------------------------------------------------------------------------- /src/assets/users-report.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/users-report.PNG -------------------------------------------------------------------------------- /src/assets/users-report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/users-report.png -------------------------------------------------------------------------------- /src/assets/bounce-report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/bounce-report.png -------------------------------------------------------------------------------- /src/assets/custom_alerts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/custom_alerts.png -------------------------------------------------------------------------------- /src/assets/reporting_api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/reporting_api.png -------------------------------------------------------------------------------- /src/assets/tag_assistant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/tag_assistant.png -------------------------------------------------------------------------------- /src/assets/duration-report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/duration-report.png -------------------------------------------------------------------------------- /src/assets/sessions-report.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/sessions-report.PNG -------------------------------------------------------------------------------- /src/assets/sessions-report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waseembarcha/vue-analytics/master/src/assets/sessions-report.png -------------------------------------------------------------------------------- /src/store/mutations.js: -------------------------------------------------------------------------------- 1 | export const changeDrawer = (state) => { 2 | if(state.drawer === null) { 3 | state.drawer = false; 4 | } else { 5 | state.drawer = !state.drawer; 6 | } 7 | } -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const merge = require('webpack-merge') 3 | const prodEnv = require('./prod.env') 4 | 5 | module.exports = merge(prodEnv, { 6 | NODE_ENV: '"development"' 7 | }) 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | /dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .idea 10 | .vscode 11 | *.suo 12 | *.ntvs* 13 | *.njsproj 14 | *.sln 15 | -------------------------------------------------------------------------------- /src/store/store.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex' 3 | import * as mutations from './mutations'; 4 | Vue.use(Vuex); 5 | 6 | export const store = new Vuex.Store({ 7 | state:{ 8 | drawer:null 9 | }, 10 | 11 | mutations 12 | }); -------------------------------------------------------------------------------- /src/pages/Duplicates.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /src/components/HelloWorld.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-vue-jsx", "transform-runtime"] 12 | } 13 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | "postcss-import": {}, 6 | "postcss-url": {}, 7 | // to edit target browsers: use "browserslist" field in package.json 8 | "autoprefixer": {} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | vue-analytics 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App' 3 | import router from './router' 4 | import { store } from './store/store' 5 | 6 | Vue.config.productionTip = false 7 | /* eslint-disable no-new */ 8 | 9 | import Vuetify from 'vuetify' 10 | Vue.use(Vuetify,{ 11 | theme: { 12 | primary: '#ff6d00' 13 | } 14 | }) 15 | 16 | import 'vuetify/dist/vuetify.min.css' 17 | 18 | export const bus = new Vue(); 19 | new Vue({ 20 | el: '#app', 21 | store, 22 | router, 23 | components: { App }, 24 | template: '' 25 | }) 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-analytics 2 | 3 | > A Vue.js project: design inspiration from Google-Analytics 4 | 5 | ## Build Setup 6 | 7 | ``` bash 8 | # install dependencies 9 | npm install 10 | 11 | # serve with hot reload at localhost:8080 12 | npm run dev 13 | 14 | # build for production with minification 15 | npm run build 16 | 17 | # build for production and view the bundle analyzer report 18 | npm run build --report 19 | ``` 20 | 21 | For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). 22 | -------------------------------------------------------------------------------- /src/components/Footer.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | 34 | 35 | 44 | -------------------------------------------------------------------------------- /src/pages/Behaviour.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 26 | 27 | 45 | 46 | 59 | -------------------------------------------------------------------------------- /src/pages/Dashboard.vue: -------------------------------------------------------------------------------- 1 | 44 | 45 | 66 | 67 | -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | import HelloWorld from '@/components/HelloWorld' 4 | import Home from '@/pages/Home' 5 | import RealTime from '@/pages/RealTime' 6 | import Audience from '@/pages/Audience' 7 | import Acquistion from '@/pages/Acquistion' 8 | import Behaviour from '@/pages/Behaviour' 9 | import Conversions from '@/pages/Conversions' 10 | import Duplicates from '@/pages/Duplicates' 11 | import Discover from '@/pages/Discover' 12 | import Dashboard from '@/pages/Dashboard' 13 | 14 | 15 | Vue.use(Router) 16 | 17 | 18 | export default new Router({ 19 | mode: 'history', 20 | routes: [ 21 | { 22 | path: '/hello', 23 | name: 'HelloWorld', 24 | component: HelloWorld 25 | }, 26 | { 27 | path: '/home', 28 | name: 'Home', 29 | component: Home 30 | }, 31 | { 32 | path: '/real-time', 33 | name: 'RealTime', 34 | component: RealTime 35 | }, 36 | { 37 | path: '/audience', 38 | name: 'Audience', 39 | component: Audience 40 | }, 41 | { 42 | path: '/acquistion', 43 | name: 'Acquistion', 44 | component: Acquistion 45 | }, 46 | { 47 | path: '/behaviour', 48 | name: 'Behaviour', 49 | component: Behaviour 50 | }, 51 | { 52 | path: '/conversions', 53 | name: 'Conversions', 54 | component: Conversions 55 | }, 56 | { 57 | path: '/duplicates', 58 | name: 'Duplicates', 59 | component: Duplicates 60 | }, 61 | { 62 | path: '/', 63 | name: 'Discover', 64 | component: Discover 65 | }, 66 | { 67 | path: '/dashboard', 68 | name: 'Dashboard', 69 | component: Dashboard 70 | }, 71 | ] 72 | }) 73 | -------------------------------------------------------------------------------- /src/components/LoginFrom.vue: -------------------------------------------------------------------------------- 1 | 47 | 48 | -------------------------------------------------------------------------------- /src/components/ModelCreateContact.vue: -------------------------------------------------------------------------------- 1 | 79 | 80 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-analytics", 3 | "version": "1.0.0", 4 | "description": "A Vue.js project: design inspiration from Google-Analytics", 5 | "author": "waseembarcha ", 6 | "private": true, 7 | "scripts": { 8 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", 9 | "start": "npm run dev", 10 | "build": "node build/build.js" 11 | }, 12 | "dependencies": { 13 | "vue": "^2.5.2", 14 | "vue-router": "^3.0.1", 15 | "vuetify": "^1.0.16", 16 | "vuex": "^3.0.1" 17 | }, 18 | "devDependencies": { 19 | "autoprefixer": "^7.1.2", 20 | "babel-core": "^6.22.1", 21 | "babel-helper-vue-jsx-merge-props": "^2.0.3", 22 | "babel-loader": "^7.1.1", 23 | "babel-plugin-syntax-jsx": "^6.18.0", 24 | "babel-plugin-transform-runtime": "^6.22.0", 25 | "babel-plugin-transform-vue-jsx": "^3.5.0", 26 | "babel-preset-env": "^1.3.2", 27 | "babel-preset-stage-2": "^6.22.0", 28 | "chalk": "^2.0.1", 29 | "copy-webpack-plugin": "^4.0.1", 30 | "css-loader": "^0.28.0", 31 | "extract-text-webpack-plugin": "^3.0.0", 32 | "file-loader": "^1.1.4", 33 | "friendly-errors-webpack-plugin": "^1.6.1", 34 | "html-webpack-plugin": "^2.30.1", 35 | "node-notifier": "^5.1.2", 36 | "optimize-css-assets-webpack-plugin": "^3.2.0", 37 | "ora": "^1.2.0", 38 | "portfinder": "^1.0.13", 39 | "postcss-import": "^11.0.0", 40 | "postcss-loader": "^2.0.8", 41 | "postcss-url": "^7.2.1", 42 | "rimraf": "^2.6.0", 43 | "semver": "^5.3.0", 44 | "shelljs": "^0.7.6", 45 | "uglifyjs-webpack-plugin": "^1.1.1", 46 | "url-loader": "^0.5.8", 47 | "vue-loader": "^13.3.0", 48 | "vue-style-loader": "^3.0.1", 49 | "vue-template-compiler": "^2.5.2", 50 | "webpack": "^3.6.0", 51 | "webpack-bundle-analyzer": "^2.9.0", 52 | "webpack-dev-server": "^2.9.1", 53 | "webpack-merge": "^4.1.0" 54 | }, 55 | "engines": { 56 | "node": ">= 6.0.0", 57 | "npm": ">= 3.0.0" 58 | }, 59 | "browserslist": [ 60 | "> 1%", 61 | "last 2 versions", 62 | "not ie <= 8" 63 | ] 64 | } 65 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | // Template version: 1.3.1 3 | // see http://vuejs-templates.github.io/webpack for documentation. 4 | 5 | const path = require('path') 6 | 7 | module.exports = { 8 | dev: { 9 | 10 | // Paths 11 | assetsSubDirectory: 'static', 12 | assetsPublicPath: '/', 13 | proxyTable: {}, 14 | 15 | // Various Dev Server settings 16 | host: 'localhost', // can be overwritten by process.env.HOST 17 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined 18 | autoOpenBrowser: false, 19 | errorOverlay: true, 20 | notifyOnErrors: true, 21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- 22 | 23 | 24 | /** 25 | * Source Maps 26 | */ 27 | 28 | // https://webpack.js.org/configuration/devtool/#development 29 | devtool: 'cheap-module-eval-source-map', 30 | 31 | // If you have problems debugging vue-files in devtools, 32 | // set this to false - it *may* help 33 | // https://vue-loader.vuejs.org/en/options.html#cachebusting 34 | cacheBusting: true, 35 | 36 | cssSourceMap: true 37 | }, 38 | 39 | build: { 40 | // Template for index.html 41 | index: path.resolve(__dirname, '../dist/index.html'), 42 | 43 | // Paths 44 | assetsRoot: path.resolve(__dirname, '../dist'), 45 | assetsSubDirectory: 'static', 46 | assetsPublicPath: '/', 47 | 48 | /** 49 | * Source Maps 50 | */ 51 | 52 | productionSourceMap: true, 53 | // https://webpack.js.org/configuration/devtool/#production 54 | devtool: '#source-map', 55 | 56 | // Gzip off by default as many popular static hosts such as 57 | // Surge or Netlify already gzip all static assets for you. 58 | // Before setting to `true`, make sure to: 59 | // npm install --save-dev compression-webpack-plugin 60 | productionGzip: false, 61 | productionGzipExtensions: ['js', 'css'], 62 | 63 | // Run the build command with an extra argument to 64 | // View the bundle analyzer report after build finishes: 65 | // `npm run build --report` 66 | // Set to `true` or `false` to always turn it on or off 67 | bundleAnalyzerReport: process.env.npm_config_report 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/pages/Conversions.vue: -------------------------------------------------------------------------------- 1 | 83 | 84 | 105 | 106 | -------------------------------------------------------------------------------- /src/pages/Audience.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | -------------------------------------------------------------------------------- /src/components/GoogleKeep.vue: -------------------------------------------------------------------------------- 1 | 92 | 93 | 119 | 120 | -------------------------------------------------------------------------------- /src/pages/RealTime.vue: -------------------------------------------------------------------------------- 1 | 86 | -------------------------------------------------------------------------------- /src/pages/Acquistion.vue: -------------------------------------------------------------------------------- 1 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /src/pages/Discover.vue: -------------------------------------------------------------------------------- 1 | 160 | 161 | -------------------------------------------------------------------------------- /src/pages/Home.vue: -------------------------------------------------------------------------------- 1 | 107 | 108 | 126 | -------------------------------------------------------------------------------- /src/components/Navbar.vue: -------------------------------------------------------------------------------- 1 | 121 | 122 | 166 | 167 | -------------------------------------------------------------------------------- /src/components/GoogleContacts.vue: -------------------------------------------------------------------------------- 1 | 202 | 203 | --------------------------------------------------------------------------------