{"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"analytics","__idx":0},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["analytics"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"usage","__idx":1},"children":["Usage"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["analytics"]}," section to integrate popular web analytics solutions into your portal."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add it to the top level of the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["siteConfig.yaml"]}," file and configure supported analytics integrations inside it."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"options","__idx":2},"children":["Options"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amplitude"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://amplitude.com/"},"children":["Amplitude Analytics"]}," into your developer portal. This integration is supported through the ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://www.gatsbyjs.com/plugins/gatsby-plugin-amplitude-analytics"},"children":["Gatsby Amplitude plugin"]},". Refer to the official plugin documentation for more details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fullstory"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://www.fullstory.com/"},"children":["FullStory analytics"]}," into your developer portal. When configured, this integration works only in production, not in local development mode."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ga"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates Google Analytics into your developer portal. This integration is supported through the ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://www.gatsbyjs.org/packages/gatsby-plugin-google-analytics/"},"children":["Gatsby Google Analytics plugin"]},". Refer to the official plugin documentation for more details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["gtag"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates Google Global Site Tag into your developer portal. When configured, this integration works only in production, not in local development mode. This integration is supported through the ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-google-gtag"},"children":["Gatsby google-gtag plugin"]},". Refer to the official plugin documentation for more details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["gtm"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates Google Tag Manager into your developer portal. This integration is supported through the ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://www.gatsbyjs.org/packages/gatsby-plugin-google-tagmanager/"},"children":["Gatsby Google Tag Manager plugin"]},". Refer to the official plugin documentation for more details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["heap"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates Heap Analytics into your developer portal. This integration is supported through the ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://www.gatsbyjs.com/plugins/gatsby-plugin-heap/"},"children":["Gatsby Heap plugin"]},". Refer to the official plugin documentation for more details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rudderstack"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates Rudderstack Analytics into your developer portal. This integration is supported through the ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://www.gatsbyjs.com/plugins/gatsby-plugin-rudderstack/"},"children":["Gatsby Rudderstack plugin"]},". Refer to the official plugin documentation for more details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["segment"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates Segment Analytics into your developer portal. This integration is supported through the ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://www.gatsbyjs.com/plugins/gatsby-plugin-segment-js/"},"children":["Gatsby SegmentJS plugin"]},". Refer to the official plugin documentation for more details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Google Marketing Platform"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integrates Google Optimize into your developer portal. This integration is supported through the ",{"$$mdtype":"Tag","name":"Link","attributes":{"href":"https://www.gatsbyjs.com/plugins/gatsby-plugin-google-marketing-platform/"},"children":["Gatsby Google Marketing Platform plugin"]},". Refer to the official plugin documentation for more details."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"examples","__idx":3},"children":["Examples"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"amplitude","__idx":4},"children":["Amplitude"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  amplitude:\n    apiKey: your-api-key\n    head: false\n    respectDNT: true\n    exclude:\n      - /preview/**\n      - /do-not-track/me/too/\n    eventTypes:\n      outboundLinkClick: OUTBOUND_LINK_CLICK\n      pageView: PAGE_VIEW\n    amplitudeConfig:\n      saveEvents: true\n      includeUtm: true\n      includeReferrer: true\n    environments:\n      - production\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"fullstory","__idx":5},"children":["FullStory"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  fullstory:\n    fs_org: YOUR_ORG_ID\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-analytics","__idx":6},"children":["Google Analytics"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  ga:\n    # This option places the tracking script into the ”<head>” of your website\n    # If set to false (default), the script is placed into the \"<body>\"\n    head: true\n    trackingId: your-google-analytics-tracking-id\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-global-site-tag-gtagjs","__idx":7},"children":["Google Global Site Tag (gtag.js)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  gtag:\n    trackingIds:\n      - \"GA-TRACKING_ID\" #Google Analytics / GA\n      - \"AW-CONVERSION_ID\" #Google Ads / Adwords / AW\n      - \"DC-FLOODIGHT_ID\" # Marketing Platform advertising products (Display & Video 360, Search Ads 360, and Campaign Manager)\n    # This object gets passed directly to the gtag config command\n    # This config will be shared across all trackingIds\n    gtagConfig:\n      optimize_id: \"OPT_CONTAINER_ID\"\n      anonymize_ip: true\n      cookie_expires: 0\n    # This object is used for configuration specific to this plugin\n    pluginConfig:\n      # Puts tracking script in the head instead of the body\n      head: false\n      # Setting this parameter is also optional\n      respectDNT: true\n      # Avoids sending pageview hits from custom paths\n      exclude: [\"/preview/**\", \"/do-not-track/me/too/\"]\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-tag-manager","__idx":8},"children":["Google Tag Manager"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  gtm:\n    id: your-google-tag-manager-id\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"heap-analytics","__idx":9},"children":["Heap Analytics"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  heap:\n    appId: your-app-id\n    enableOnDevMode: true # set to false by default\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"rudderstack-analytics","__idx":10},"children":["Rudderstack Analytics"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  rudderstack:\n    prodKey: your-prod-write-key\n    devKey: your-dev-write-key\n    dataPlaneUrl: your-data-plane-url\n    trackPage: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"segment","__idx":11},"children":["Segment"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  segment:\n    prodKey: SEGMENT_PRODUCTION_WRITE_KEY\n    trackPage: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-marketing-platform","__idx":12},"children":["Google Marketing Platform"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"analytics:\n  googleOptimize:\n    dataLayer:\n      gaPropertyId: your-google-analytics-tracking-id\n    optimize:\n      id: your-google-optimize-tracking-id\n    tagmanager:\n      id: your-google-tag-manager-id\n    analytics:\n      trackingId: your-google-analytics-tracking-id\n","lang":"yaml"},"children":[]}]},"frontmatter":{"excludeFromSearch":true},"tagList":[],"title":"analytics","lastModified":"2025-05-28T16:01:32.000Z"}