add goatcounter
This commit is contained in:
parent
0b4ddff65b
commit
f70729c774
|
@ -7,6 +7,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
/* Your site config here */
|
/* Your site config here */
|
||||||
plugins: [
|
plugins: [
|
||||||
|
'gatsby-plugin-graphql-codegen',
|
||||||
'gatsby-plugin-react-helmet',
|
'gatsby-plugin-react-helmet',
|
||||||
{
|
{
|
||||||
resolve: `gatsby-plugin-sass`,
|
resolve: `gatsby-plugin-sass`,
|
||||||
|
|
|
@ -15,6 +15,10 @@ const Layout: React.FC<{}> = (props) => {
|
||||||
{props.children}
|
{props.children}
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue