{"id":4369,"date":"2020-11-22T10:03:10","date_gmt":"2020-11-22T10:03:10","guid":{"rendered":"https:\/\/infyblog.zluck.in\/?p=4369"},"modified":"2025-07-17T08:40:50","modified_gmt":"2025-07-17T08:40:50","slug":"how-to-implement-google-analytics-into-gatsby-site","status":"publish","type":"post","link":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/","title":{"rendered":"How to implement Google Analytics into Gatsby Site"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4369\" class=\"elementor elementor-4369\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-343ac1d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"343ac1d\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-721e1c5\" data-id=\"721e1c5\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\n\t\t<div class=\"elementor-element elementor-element-08edf61 elementor-widget elementor-widget-text-editor\" data-id=\"08edf61\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>We have recently developed a site into the gatsby. We want to add Google Analytics to the website.<\/p><p>So, this is the way we implemented Google Analytics in the Gatsby site.<\/p><h2>Use Gatsby Google GTag Plugin<\/h2><p>Gatsby has a plugin<a href=\"https:\/\/www.gatsbyjs.com\/plugins\/gatsby-plugin-google-gtag\/\"> gatsby-plugin-google-gtag<\/a> that be used to easily add Google Global Site Tag to your Gatsby site.<\/p><p>Install the package by running the following command:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e082b27 elementor-widget elementor-widget-code-highlight\" data-id=\"e082b27\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>npm i gatsby-plugin-google-gtag --save<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-000af01 elementor-widget elementor-widget-text-editor\" data-id=\"000af01\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2>Configuration<\/h2><p>Once the installation is complete, you can now add this plugin to your gatsby-config.js:<\/p><p>Configure trackingIds and other options. Add this into the plugins array. Like,<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0baa84f elementor-widget elementor-widget-code-highlight\" data-id=\"0baa84f\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>module.exports = {\r\n  \/\/ ...\r\n  plugins: [\r\n    {\r\n      resolve: `gatsby-plugin-google-gtag`,\r\n      options: {\r\n              \/\/ You can add multiple tracking ids and a pageview event will be fired for all of them.\r\n              trackingIds: [\r\n                \"GA-TRACKING_ID\", \/\/ Google Analytics \/ GA\r\n                \"AW-CONVERSION_ID\", \/\/ Google Ads \/ Adwords \/ AW\r\n                \"DC-FLOODIGHT_ID\", \/\/ Marketing Platform advertising products (Display & Video 360, Search Ads 360, and Campaign Manager)\r\n              ],\r\n              \/\/ This object gets passed directly to the gtag config command\r\n              \/\/ This config will be shared across all trackingIds\r\n              gtagConfig: {\r\n                optimize_id: \"OPT_CONTAINER_ID\",\r\n                anonymize_ip: true,\r\n                cookie_expires: 0,\r\n              },\r\n              \/\/ This object is used for configuration specific to this plugin\r\n              pluginConfig: {\r\n                \/\/ Puts tracking script in the head instead of the body\r\n                head: false,\r\n                \/\/ Setting this parameter is also optional\r\n                respectDNT: true,\r\n                \/\/ Avoids sending pageview hits from custom paths\r\n                exclude: [\"\/preview\/**\", \"\/do-not-track\/me\/too\/\"],\r\n              },\r\n      },\r\n    },\r\n  ],\r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1bed2f4 elementor-widget elementor-widget-text-editor\" data-id=\"1bed2f4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>This plugin automatically sends a \u201cpageview\u201d event to all products given as \u201ctrackingIds&#8221; on every Gatsby&#8217;s route change.<\/p><p>If you want to call a custom event you have access to window.gtag where you can call an event for all products.<\/p><p>Check out this code.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-35d5e83 elementor-widget elementor-widget-code-highlight\" data-id=\"35d5e83\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>typeof window !== \"undefined\" && window.gtag(\"event\", \"click\", { ...data })<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fbddf67 elementor-widget elementor-widget-text-editor\" data-id=\"fbddf67\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><strong>NOTE:<\/strong> This plugin only works in production mode! To test your Global Site Tag is installed and<\/p><p>You need to run the following command for firing events correctly.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ccee595 elementor-widget elementor-widget-code-highlight\" data-id=\"ccee595\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>gatsby build && gatsby serve<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-381f9b9 elementor-widget elementor-widget-text-editor\" data-id=\"381f9b9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>If you need to exclude any path from the tracking system, you can add one or more to this optional array.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>We have recently developed a site into the gatsby. We want to add Google Analytics to the website. So, this is the way&#8230;<\/p>\n","protected":false},"author":2,"featured_media":4371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""},"two_page_speed":[],"footnotes":""},"categories":[83],"tags":[84,19],"class_list":["post-4369","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gatsby","tag-gatsby","tag-learning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to implement Google Analytics into Gatsby Site<\/title>\n<meta name=\"description\" content=\"Add Google Analytics to your Gatsby site, set up tracking scripts, configure events, support GDPR, validate data, and monitor insights.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to implement Google Analytics into Gatsby Site\" \/>\n<meta property=\"og:description\" content=\"Add Google Analytics to your Gatsby site, set up tracking scripts, configure events, support GDPR, validate data, and monitor insights.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog | InfyOm Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/infyom\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-22T10:03:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-17T08:40:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png\" \/>\n\t<meta property=\"og:image:width\" content=\"772\" \/>\n\t<meta property=\"og:image:height\" content=\"484\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InfyOm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InfyOm\" \/>\n<meta name=\"twitter:site\" content=\"@InfyOm\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InfyOm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/\"},\"author\":{\"name\":\"InfyOm\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754\"},\"headline\":\"How to implement Google Analytics into Gatsby Site\",\"datePublished\":\"2020-11-22T10:03:10+00:00\",\"dateModified\":\"2025-07-17T08:40:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/\"},\"wordCount\":194,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/infyom.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png\",\"keywords\":[\"Gatsby\",\"Learning\"],\"articleSection\":[\"Gatsby\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/\",\"url\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/\",\"name\":\"How to implement Google Analytics into Gatsby Site\",\"isPartOf\":{\"@id\":\"https:\/\/infyom.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png\",\"datePublished\":\"2020-11-22T10:03:10+00:00\",\"dateModified\":\"2025-07-17T08:40:50+00:00\",\"description\":\"Add Google Analytics to your Gatsby site, set up tracking scripts, configure events, support GDPR, validate data, and monitor insights.\",\"breadcrumb\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#primaryimage\",\"url\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png\",\"contentUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png\",\"width\":772,\"height\":484,\"caption\":\"How to implement Google Analytics into Gatsby Site\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/infyom.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to implement Google Analytics into Gatsby Site\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/infyom.com\/blog\/#website\",\"url\":\"https:\/\/infyom.com\/blog\/\",\"name\":\"Blog | InfyOm Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/infyom.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/infyom.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/infyom.com\/blog\/#organization\",\"name\":\"InfyOm Technologies\",\"url\":\"https:\/\/infyom.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png\",\"contentUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png\",\"width\":88,\"height\":41,\"caption\":\"InfyOm Technologies\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/infyom\",\"https:\/\/x.com\/InfyOm\",\"https:\/\/www.instagram.com\/infyomtechnologies\/\",\"https:\/\/in.linkedin.com\/company\/infyom-technologies\",\"https:\/\/github.com\/infyomlabs\",\"https:\/\/x.com\/infyom\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754\",\"name\":\"InfyOm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g\",\"caption\":\"InfyOm\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to implement Google Analytics into Gatsby Site","description":"Add Google Analytics to your Gatsby site, set up tracking scripts, configure events, support GDPR, validate data, and monitor insights.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/","og_locale":"en_US","og_type":"article","og_title":"How to implement Google Analytics into Gatsby Site","og_description":"Add Google Analytics to your Gatsby site, set up tracking scripts, configure events, support GDPR, validate data, and monitor insights.","og_url":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/","og_site_name":"Blog | InfyOm Technologies","article_publisher":"https:\/\/www.facebook.com\/infyom","article_published_time":"2020-11-22T10:03:10+00:00","article_modified_time":"2025-07-17T08:40:50+00:00","og_image":[{"width":772,"height":484,"url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png","type":"image\/png"}],"author":"InfyOm","twitter_card":"summary_large_image","twitter_creator":"@InfyOm","twitter_site":"@InfyOm","twitter_misc":{"Written by":"InfyOm","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#article","isPartOf":{"@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/"},"author":{"name":"InfyOm","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754"},"headline":"How to implement Google Analytics into Gatsby Site","datePublished":"2020-11-22T10:03:10+00:00","dateModified":"2025-07-17T08:40:50+00:00","mainEntityOfPage":{"@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/"},"wordCount":194,"commentCount":0,"publisher":{"@id":"https:\/\/infyom.com\/blog\/#organization"},"image":{"@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#primaryimage"},"thumbnailUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png","keywords":["Gatsby","Learning"],"articleSection":["Gatsby"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/","url":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/","name":"How to implement Google Analytics into Gatsby Site","isPartOf":{"@id":"https:\/\/infyom.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#primaryimage"},"image":{"@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#primaryimage"},"thumbnailUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png","datePublished":"2020-11-22T10:03:10+00:00","dateModified":"2025-07-17T08:40:50+00:00","description":"Add Google Analytics to your Gatsby site, set up tracking scripts, configure events, support GDPR, validate data, and monitor insights.","breadcrumb":{"@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#primaryimage","url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png","contentUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-implement-google-analytics-into-gatsby-site.png","width":772,"height":484,"caption":"How to implement Google Analytics into Gatsby Site"},{"@type":"BreadcrumbList","@id":"https:\/\/infyom.com\/blog\/how-to-implement-google-analytics-into-gatsby-site\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/infyom.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to implement Google Analytics into Gatsby Site"}]},{"@type":"WebSite","@id":"https:\/\/infyom.com\/blog\/#website","url":"https:\/\/infyom.com\/blog\/","name":"Blog | InfyOm Technologies","description":"","publisher":{"@id":"https:\/\/infyom.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/infyom.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/infyom.com\/blog\/#organization","name":"InfyOm Technologies","url":"https:\/\/infyom.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png","contentUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png","width":88,"height":41,"caption":"InfyOm Technologies"},"image":{"@id":"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/infyom","https:\/\/x.com\/InfyOm","https:\/\/www.instagram.com\/infyomtechnologies\/","https:\/\/in.linkedin.com\/company\/infyom-technologies","https:\/\/github.com\/infyomlabs","https:\/\/x.com\/infyom"]},{"@type":"Person","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754","name":"InfyOm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g","caption":"InfyOm"}}]}},"_links":{"self":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/4369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/comments?post=4369"}],"version-history":[{"count":20,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/4369\/revisions"}],"predecessor-version":[{"id":8161,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/4369\/revisions\/8161"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/media\/4371"}],"wp:attachment":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/media?parent=4369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/categories?post=4369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/tags?post=4369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}