-
Notifications
You must be signed in to change notification settings - Fork 25
Google Analytics Error - GraphQLError: Cannot query field "allMarkdownRemark" on type "Query". #1
Comments
Hi and thanks for trying out my starter! plugins: [
{
resolve: 'gatsby-plugin-google-analytics',
options: {
// replace "UA-XXXXXXXXX-X" with your own Tracking ID
trackingId: "UA-965XXXX23-3",
head: true
}
},
{
resolve: 'gatsby-plugin-facebook-analytics',
options: {
appId: "25617665XXXXX",
// Include facebook analytics in development.
// Defaults to false meaning the library will only be loaded in production.
includeInDevelopment: false,
// Include debug version of sdk
// Defaults to false meaning the library will load sdk.js
debug: false,
head: true,
// Can select your language, default will load english
language: "en_US"
}
}
] |
Thank's for ur suggestion, I'm totally new with it. But I've tried it out and still getting the same error. When I trying to deploy it to netlify. but I'm not sure why this error is showing up only when I added the plugins in Also, I've tried adding this config to my What if I insert the Analytics into Somehow I think to add the analytics into it refer to their support : Adding analytics.js to Your Site And followed this issue from StackOverflow On my
The deployment becomes successfully. But still, it won't trigger the analytics... |
Before to go in deep in the issue:
I note that you've imported
|
Free to reopen the issue if you have new informations about it. |
Hi,
I'm currently using your theme to build my personal blog.
But somehow I need to add Google Analytics into my blog, but, it gives me an error :
GraphQLError: Cannot query field "allMarkdownRemark" on type "Query".
. Could you please provide me about what's wrong with it?Here's the error log when trying to deploy on netlify :
I was trying to figure it out referring to this issue #2212 & this #2150 but still, it doesn't work in my case...
As you can see here at my gatsby-config.js :
The text was updated successfully, but these errors were encountered: