Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby-plugin-google-analytics): Refactor gatsby-plugin-google-an…
…alytics gatsby-browser.js (#14572) The gatsby-browser.js file in gatsby-plugin-google-analytics and gatsby-plugin-google-gtag have borderline identical functionality howeve that is slightly obscured as their implementation is slightly different, notably gatsby-plugin-google-analytics does not use the early return pattern which means the nesting of everything is different if you try and diff the two files. This commit makes gatsby-plugin-google-analytics use the early return pattern to make it applying the same changes to this an gatsby-plugin-google-gtag easier.
- Loading branch information