Skip to content

Osano script#2704

Open
AndyMBridges wants to merge 2 commits intomainfrom
osano-script
Open

Osano script#2704
AndyMBridges wants to merge 2 commits intomainfrom
osano-script

Conversation

@AndyMBridges
Copy link
Contributor

@AndyMBridges AndyMBridges commented Feb 12, 2026

Description

Place osano.js first in the <head> tag - https://docs.osano.com/hc/en-us/articles/22472073125652-Osano-and-Google-Tag-Manager#direct-install


Note

Low Risk
Configuration-only change that affects the order/placement of a third-party script in the rendered HTML; main risk is unintended analytics/cookie-consent behavior due to load-order differences.

Overview
Moves the Osano CMP (osano.js) inclusion out of docusaurus.config.js scripts and into a new src/plugins/osano.ts that uses injectHtmlTags() to add the script to headTags.

Registers the new plugin in the Docusaurus plugins list, removing the previous inline external script entry so it can load earlier in the page head (ahead of tag manager/analytics).

Written by Cursor Bugbot for commit 4772c0d. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
metamask-docs Ready Ready Preview, Comment Feb 12, 2026 6:45pm

Request Review

@AndyMBridges AndyMBridges marked this pull request as ready for review February 12, 2026 19:03
@AndyMBridges AndyMBridges requested review from a team as code owners February 12, 2026 19:03
@AndyMBridges AndyMBridges requested a review from Jwhiles February 12, 2026 19:05
Copy link
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Jwhiles
Copy link
Contributor

Jwhiles commented Feb 12, 2026

I don't know if this matters, but there are other scripts that come before it in the head

image

Is the idea that it needs to be the first script loaded?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants