add goatcounter
This commit is contained in:
parent
0b4ddff65b
commit
f70729c774
|
@ -7,6 +7,7 @@
|
|||
module.exports = {
|
||||
/* Your site config here */
|
||||
plugins: [
|
||||
'gatsby-plugin-graphql-codegen',
|
||||
'gatsby-plugin-react-helmet',
|
||||
{
|
||||
resolve: `gatsby-plugin-sass`,
|
||||
|
|
|
@ -15,6 +15,10 @@ const Layout: React.FC<{}> = (props) => {
|
|||
{props.children}
|
||||
</main>
|
||||
</div>
|
||||
{process.env.NODE_ENV === "production" ? (
|
||||
<script data-goatcounter="https://riksolo-com.stats.riksolo.com/count"
|
||||
async src="//riksolo-com.stats.riksolo.com/count.js"></script>
|
||||
) : null}
|
||||
</div>
|
||||
)
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue