We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f08687c commit 6a6ac17Copy full SHA for 6a6ac17
packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js
@@ -34,10 +34,15 @@ export const onRenderBody = (
34
// Lighthouse recommends pre-connecting to google analytics
35
setHeadComponents([
36
<link
37
- rel="preconnect dns-prefetch"
+ rel="preconnect"
38
key="preconnect-google-analytics"
39
href="https://www.google-analytics.com"
40
/>,
41
+ <link
42
+ rel="dns-prefetch"
43
+ key="dns-prefetch-google-analytics"
44
+ href="https://www.google-analytics.com"
45
+ />,
46
])
47
48
const excludeGAPaths = []
0 commit comments