From 21b715dc576b825e9822a31d7d671814a446ca63 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 8 Nov 2019 01:32:01 +0400 Subject: [PATCH] Add gtag and fix icons height --- components/guide-footer/style.js | 8 ++++---- components/helmet/index.js | 12 ++++++++++++ components/share-guide/index.js | 16 +++++----------- components/share-guide/style.js | 11 ++++++++--- data/guides.json | 6 ++++++ layouts/default/index.js | 22 ++++++++++++++++------ lib/gtag.js | 17 +++++++++++++++++ lib/guide.js | 7 ------- next.config.js | 2 +- pages/guides/[guide].js | 12 +++++++----- 10 files changed, 76 insertions(+), 37 deletions(-) create mode 100644 lib/gtag.js diff --git a/components/guide-footer/style.js b/components/guide-footer/style.js index 64ede724c..66a19f41a 100644 --- a/components/guide-footer/style.js +++ b/components/guide-footer/style.js @@ -26,7 +26,8 @@ export const ShareWrap = styled.div` color: #101010; svg { - height: 18px; + height: 18px !important; + width: 18px !important; color: #757575; margin-left: 7px; transition: all 0.2s ease; @@ -108,9 +109,8 @@ export const AuthorBio = styled.p` export const AuthorImg = styled.img` border-radius: 100%; - height: 100px; - width: 100px; - border-radius: 100%; + height: 100px !important; + width: 100px !important; margin-right: 22px; `; diff --git a/components/helmet/index.js b/components/helmet/index.js index bfdb2ca45..da8d32d92 100644 --- a/components/helmet/index.js +++ b/components/helmet/index.js @@ -1,5 +1,6 @@ import NextHead from 'next/head'; import siteConfig from 'data/site'; +import { GA_TRACKING_ID } from 'lib/gtag'; const prepareTitle = (givenTitle) => { givenTitle = givenTitle || siteConfig.title; @@ -52,6 +53,17 @@ const Helmet = (props) => ( + + { /* Global Site Tag (gtag.js) - Google Analytics */ } +