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"
}

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

Oops, something went wrong.

0 comments on commit 16d67df

Please sign in to comment.