GatsbyJS - Add Google AdSense

One of the major strengths of Gatsby is its evolving plugins catalog.
And there are a couple of plugins found for Google AdSense integration but don’t seem to be maintained for so long.
But peeking into the source code of the one pave the path to do the same without any plugins.

All you have to do is, update your gatsby-ssr.js with the below code (if there is no gatsby-ssr.js file on your project directory then create one at the root).

Written by Abhith RajanFollow @AbhithRajan
Abhith Rajan is an aspiring software engineer with more than 7 years of experience and proven successful track record of delivering technology-based products and services.
Buy me a coffee ☕