From 94be235433fd2b68eba49801cd9694e493c79d18 Mon Sep 17 00:00:00 2001 From: SangYeob Yu Date: Thu, 25 Jun 2020 13:25:32 +0900 Subject: [PATCH] Separate preconnect and dns-prefetch of google analytics --- packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js b/packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js index 3524f7b6aa80f..becc9c8dd45b7 100644 --- a/packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js +++ b/packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js @@ -34,10 +34,15 @@ export const onRenderBody = ( // Lighthouse recommends pre-connecting to google analytics setHeadComponents([ , + , ]) const excludeGAPaths = []