Add google analytics

This commit is contained in:
MD. Ariful Alam
2021-08-25 20:56:57 +06:00
parent de9f47c7a9
commit 8eb2b4b09f
6 changed files with 66 additions and 10 deletions

View File

@@ -15,6 +15,11 @@ import Education from "./components/Education";
import Project from "./components/Project";
import { setRepo } from "./store/slices/repoSlice";
import Blog from "./components/Blog";
import { ga } from "./helpers/utils";
if (config.googleAnalytics.id) {
ga.initialize(config.googleAnalytics.id);
}
function App() {
const dispatch = useDispatch();