Skip to content
Permalink
Browse files

chore: Set up google integration for website.

  • Loading branch information
chriseppstein committed May 1, 2018
1 parent 38eda83 commit 16d67dfb04ba17d6db4a19f33bee758c0dad0c45
@@ -40,6 +40,7 @@
"react": "^16.1.1",
"react-dev-utils": "^4.2.1",
"react-dom": "^16.1.1",
"react-ga": "^2.5.0",
"react-router-dom": "^4.2.2",
"style-loader": "0.19.0",
"sw-precache-webpack-plugin": "0.11.4",
@@ -0,0 +1,3 @@
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@@ -0,0 +1 @@
google-site-verification: google025ea9ca935dea1b.html
@@ -0,0 +1,2 @@
#!/bin/bash
rsync -rlvz -R build/./ cssblocks@css-blocks.com:css-blocks.com
@@ -1,4 +1,5 @@
import React, { Component } from 'react';
import GoogleAnalytics from 'react-ga';
import { BrowserRouter, Link, Route } from 'react-router-dom'

import Home from "./pages/Home/index";
@@ -7,6 +8,9 @@ import Demo from "./pages/Demo";
import styles from "./App.block.css";
import linkedinLogo from "./images/linkedin-logo.svg";

GoogleAnalytics.initialize('UA-118435129-1');
GoogleAnalytics.pageview(window.location.pathname + window.location.search);

class App extends Component {
render() {
return (
@@ -12,5 +12,6 @@ module.exports = {
"theme": "packages/@css-blocks/website/typedoc-theme",
"name": "@css-blocks",
"external-modulemap": ".*packages\/(@css-blocks\/[^\/]+)\/.*",
"readme": "./README.md"
}
"readme": "./README.md",
"gaID": "UA-118435129-1"
}
@@ -9946,6 +9946,13 @@ react-error-overlay@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-3.0.0.tgz#c2bc8f4d91f1375b3dad6d75265d51cd5eeaf655"

react-ga@^2.5.0:
version "2.5.0"
resolved "https://registry.npmjs.org/react-ga/-/react-ga-2.5.0.tgz#fbba2b33d41ce727f7d4cf383d54dbbfbf96c507"
optionalDependencies:
prop-types "^15.6.0"
react "^15.6.2 || ^16.0"

react-router-dom@^4.2.2:
version "4.2.2"
resolved "https://registry.npmjs.org/react-router-dom/-/react-router-dom-4.2.2.tgz#c8a81df3adc58bba8a76782e946cbd4eae649b8d"
@@ -9969,7 +9976,7 @@ react-router@^4.2.0:
prop-types "^15.5.4"
warning "^3.0.0"

react@^16.1.1:
"react@^15.6.2 || ^16.0", react@^16.1.1:
version "16.3.2"
resolved "https://registry.npmjs.org/react/-/react-16.3.2.tgz#fdc8420398533a1e58872f59091b272ce2f91ea9"
dependencies:

0 comments on commit 16d67df

Please sign in to comment.