Skip to content

Commit

Permalink
Adds Google Analytics tracking #35
Browse files Browse the repository at this point in the history
  • Loading branch information
kaayru committed Apr 9, 2020
1 parent 14ec0c7 commit 534fba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ module.exports = {
{
resolve: 'gatsby-plugin-google-analytics',
options: {
// trackingId: 'ADD YOUR TRACKING ID HERE',
trackingId: 'UA-43520247-1',
respectDNT: true,
},
},
'gatsby-plugin-offline',
Expand Down
3 changes: 2 additions & 1 deletion src/components/post.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { graphql, Link } from 'gatsby';
import { OutboundLink } from 'gatsby-plugin-google-analytics';
import styled from 'styled-components';

import { PostFragment } from 'src/generated/graphql';
Expand Down Expand Up @@ -27,7 +28,7 @@ const PostMeta = styled.div`
}
`;

const PostLink = styled.a`
const PostLink = styled(OutboundLink)`
color: var(--primaryTextColor);
background-image: none;
Expand Down

0 comments on commit 534fba3

Please sign in to comment.