-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: customize URL of Google Tag Manager #4369
feat: customize URL of Google Tag Manager #4369
Conversation
// ["@edno/docusaurus2-graphql-doc-generator", | ||
// { | ||
// schema: "http://localhost:8080/tasklist/graphql", | ||
// rootPath: "./docs/", // docs will be generated under (rootPath/baseURL) | ||
// baseURL: "apis-tools/tasklist-api", | ||
// linkRoot: "/docs/", | ||
// loaders: { | ||
// UrlLoader: "@graphql-tools/url-loader" | ||
// } | ||
// }, | ||
// ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what this is or why were holding on to it, but I've been meaning to delete this for a long time 😅
docusaurus.config.js
Outdated
id: "GTM-KQGNSTS", // GTM Container ID | ||
containerId: "GTM-KQGNSTS", | ||
tagManagerUrl: | ||
process.env.TAG_MANAGER_URL || "https://ssgtm.camunda.com", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm letting the default value flow through for now; if we decide in the future that we want to change it again, we can do so by specifying an environment variable in GitHub.
if (process.env.NODE_ENV !== "production") { | ||
return null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will prevent GTM from rendering when running locally. The plugin we're previously using doesn't do this, but it seems like the right thing to do.
My anxiety appreciates this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![image](https://private-user-images.githubusercontent.com/1051363/372504837-4abdcd3c-f0e9-4796-9b2e-1382d9c0a3a4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODY1OTgsIm5iZiI6MTczOTA4NjI5OCwicGF0aCI6Ii8xMDUxMzYzLzM3MjUwNDgzNy00YWJkY2QzYy1mMGU5LTQ3OTYtOWIyZS0xMzgyZDljMGEzYTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDczMTM4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWIzODdiNmYwYmFlZDc1YjVjZjY2OTVhMDhiYmJhY2Q0MjZlNmI5ZjVhNTQ0NGE5OWZkN2ViZGU5NjkxZjg4MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ._KIS6zv7HNluWS11BSyZwK6UgB_roH6uazTAgY63Ggs)
I'm not really sure how to test this, but I see it loads the URL, so I will approve.
@antantunes, would you be able to confirm this change is working as expected? Does this change need to go in parallel with the product? AFAIK, they have not received a request for this.
Removing |
Followed up via Slack https://camunda.slack.com/archives/C034F8NA1G8/p1728315795888939 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Preview environment for this PR has been torn down. |
Description
Addresses #4351.
Uninstalls the 3rd-party plugin we were using (https://github.com/LukasGentele/docusaurus-gtm-plugin), and defines the plugin locally instead, with the ability to specify a
tagManagerUrl
.When should this change go live?
PR Checklist
/versioned_docs
directory./docs
directory (aka/next/
).My changes require an Engineering review, and I've assigned the Engineering DRI or delegate.
My changes require a technical writer review, and I've assigned @camunda/tech-writers as a reviewer.
My changes require a docs infrastructure review.