Skip to content

Commit 5a9b181

Browse files
authored
DocSearch + Analytics (#67)
* Add gtag * Add Algolia DocSearch
1 parent 8ff5f7a commit 5a9b181

File tree

6 files changed

+2882
-5283
lines changed

6 files changed

+2882
-5283
lines changed

docs/ff-concepts/adding-customization/cloud-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
slug: /concepts/custom-code/custom-functions
2+
slug: /concepts/custom-code/cloud-functions
33
title: Cloud Functions
44
description: Learn how to use Cloud Functions in your FlutterFlow app for serverless backend functionality.
55
tags: [FlutterFlow, Cloud Functions, Serverless, Integration]

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ hide_title: true
66
sidebar_label: Overview
77
slug: /
88
hide_table_of_contents: true
9-
109
---
1110

1211
import InfoCard from '@site/src/components/InfoCard';

docusaurus.config.ts

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ const config: Config = {
4040
blogSidebarTitle: 'FlutterFlow Blog',
4141
blogSidebarCount: 'ALL'
4242
},
43-
43+
gtag: {
44+
trackingID: 'G-LC4SC6JY70',
45+
anonymizeIP: true,
46+
},
4447
theme: {
4548
customCss: './src/css/custom.css',
4649
},
@@ -134,44 +137,39 @@ const config: Config = {
134137
],
135138
copyright: `Copyright © ${new Date().getFullYear()} FlutterFlow. Built with Docusaurus.`,
136139
},
137-
plugins: [
138-
[
139-
'@docusaurus/plugin-google-gtag',
140-
{
141-
trackingID: 'G-XXXXXXXXXX', // Your GA4 Measurement ID
142-
anonymizeIP: true, // Optional: Anonymizes the IP address of the sender
143-
},
144-
],
145-
],
146-
// algolia: {
147-
// // The application ID provided by Algolia
148-
// appId: 'YOUR_APP_ID',
149140

150-
// // Public API key: it is safe to commit it
151-
// apiKey: 'YOUR_SEARCH_API_KEY',
141+
algolia: {
142+
// The application ID provided by Algolia
143+
appId: 'L5VTR6TWVD',
144+
145+
// Public API key: it is safe to commit it
146+
apiKey: 'bab16fbb5188c4b49fad968ebc643dd3',
152147

153-
// indexName: 'YOUR_INDEX_NAME',
148+
indexName: 'flutterflow--82026',
154149

155-
// // Optional: see doc section below
156-
// contextualSearch: true,
150+
// Optional: see doc section below
151+
contextualSearch: true,
157152

158-
// // Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
159-
// externalUrlRegex: 'external\\.com|domain\\.com',
153+
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
154+
// externalUrlRegex: 'external\\.com|domain\\.com',
160155

161-
// // Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
162-
// replaceSearchResultPathname: {
163-
// from: '/docs/', // or as RegExp: /\/docs\//
164-
// to: '/',
165-
// },
156+
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
157+
replaceSearchResultPathname: {
158+
from: '/docs/', // or as RegExp: /\/docs\//
159+
to: '/',
160+
},
166161

167-
// // Optional: Algolia search parameters
168-
// searchParameters: {},
162+
// Optional: Algolia search parameters
163+
searchParameters: {},
169164

170-
// // Optional: path for search page that enabled by default (`false` to disable it)
171-
// searchPagePath: 'search',
165+
// Optional: path for search page that enabled by default (`false` to disable it)
166+
searchPagePath: 'search',
172167

173-
// //... other Algolia params
174-
// },
168+
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
169+
insights: true,
170+
171+
//... other Algolia params
172+
},
175173
prism: {
176174
theme: prismThemes.github,
177175
darkTheme: prismThemes.dracula,

0 commit comments

Comments
 (0)