Skip to content

Enable Reo third-party tracking on Learn - #3232

Merged
sashwathn merged 1 commit into
masterfrom
reo-third-party-tracking
Dec 2, 2026
Merged

sashwathn merged 1 commit into
masterfrom
reo-third-party-tracking

Conversation

@sashwathn

@sashwathn sashwathn commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add enableThirdPartyTracking: true to the existing Reo.init call in docusaurus.config.js.
  • Script loading (scripts[] entry) and init timing (window.load) are unchanged.

Page-size baseline

The flag adds 28 bytes to every rendered page (minified ,enableThirdPartyTracking:!0). That changes the SNMP Profile Format heavy-page identity from 518,446 to 518,474 bytes, so config/site-build-gate-baseline.json is updated:

  • Replaced the stale 518,341-byte entry, which matches no current build, with the new 518,474-byte identity.
  • Kept the 518,446-byte entry, which matches current master, so other open pull requests still pass until this merges. It can be dropped afterwards.

Verification

  • Local docusaurus build + scripts/run-post-build-gates.mjs (Node 22): gate exit 0, no regressions; the SNMP page is an accepted finding.
  • node --test tests/site_build_gate.test.js: 4 passed, 0 failed.

Summary by cubic

Enables Reo third-party tracking on Learn by adding enableThirdPartyTracking: true to the existing Reo.init call in docusaurus.config.js. Script loading and window.load init timing are unchanged.

Site build gate baseline

  • The flag adds 28 bytes to every rendered page, changing the SNMP Profile Format heavy-page identity to 518,474 bytes.
  • Replaces the stale 518,341-byte entry, which matches no current build, with the new identity.
  • Keeps the 518,446-byte entry so master and other open pull requests still pass until this merges; it can be dropped afterwards.

Written for commit d218a44. Summary will update on new commits.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • Updates
    • Reo now enables third-party tracking alongside its existing client ID configuration. This changes the site’s tracking behavior but does not add new screens, controls, or workflows. The site’s visible content remains unchanged, and no other end-user-facing changes are included in this update.

Add enableThirdPartyTracking: true to the existing Reo.init call. Script
loading and the window load init timing are unchanged.

The flag adds 28 bytes to every rendered page, which changes the SNMP
Profile Format heavy-page identity (518,446 -> 518,474 bytes). Replace the
stale 518,341-byte entry with the new identity and keep the 518,446-byte
entry so master and open pull requests still pass until this merges.
@netlify

netlify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for netdata-docusaurus ready!

Name Link
🔨 Latest commit d218a44
🔍 Latest deploy log https://app.netlify.com/projects/netdata-docusaurus/deploys/6b0fd5e96002622d3810b103
😎 Deploy Preview https://deploy-preview-3232--netdata-docusaurus.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PR updates the SNMP Profile Format page’s build-gate baseline entry and enables third-party tracking in the Reo initialization call.

Changes: SNMP Profile Format baseline

Layer / File(s) Summary
Update the page baseline
config/site-build-gate-baseline.json
The entry’s identity hash changes, and its documented size increases to 518,474 bytes. The temporary exception and removal condition remain.

Reo tracking initialization

Layer / File(s) Summary
Enable third-party tracking
docusaurus.config.js
The Reo initialization call adds enableThirdPartyTracking: true alongside the existing client ID.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Feature

Possibly related PRs

  • netdata/learn#3204: Both PRs update the SNMP Profile Format page’s baseline identity, so the final baseline value depends on merge order.

Suggested reviewers: shyamvalsan, ktsaou

Merge Risk: Minimal · up to d218a

This change turns on third-party tracking in the existing Reo analytics setup and refreshes the build-gate baseline for the SNMP Profile Format page. No concrete defect was found. A product or privacy owner should confirm that the flag matches the site's tracking policy, but that is not a merge blocker.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Enable Reo third-party tracking on Learn" matches the main change. The diff adds enableThirdPartyTracking: true to the existing Reo.init call in docusaurus.config.js, so the title names…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Enable Reo third-party tracking on Learn" matches the main change. The diff adds enableThirdPartyTracking: true to the existing Reo.init call in docusaurus.config.js, so the title names the primary change. The baseline JSON update is a secondary, supporting change that the title does not need to mention.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4dbc470d-18ab-427d-a17b-24b336cf40c9
Commits

Reviewing files that changed from the base of the PR and between 148dcee and d218a44.

Files selected for processing: 2

  • config/site-build-gate-baseline.json
  • docusaurus.config.js

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 2 files

Confidence score: 3/5

  • docusaurus.config.js enables Reo tracking for visitors who haven’t accepted Performance Cookies. Gate the script and Reo.init on consent, or keep tracking disabled for visitors who decline.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docusaurus.config.js">

<violation number="1" location="docusaurus.config.js:296">
P2: This enables Reo third-party tracking for every visitor without a consent gate. Gate both the Reo script and `Reo.init` on accepted Performance Cookies, or keep this option disabled for visitors who decline tracking.</violation>
</file>
Architecture diagram
sequenceDiagram
    participant Browser as Browser
    participant Docusaurus as Docusaurus Config
    participant ReoScript as Reo Script (External)
    participant ReoInit as Reo Tracking API
    participant ThirdParty as Third-Party Trackers
    participant Gate as Site Build Gate

    Note over Browser,ThirdParty: Reo Third-Party Tracking Flow

    Browser->>Docusaurus: Load rendered page
    Note over Docusaurus: docusaurus.config.js<br/>Reo.init configured with<br/>clientID + enableThirdPartyTracking
    
    Browser->>ReoScript: Load Reo external script
    ReoScript-->>Browser: Reo global object available
    
    Browser->>Browser: window.load event fires
    
    Browser->>ReoInit: Reo.init({ clientID, enableThirdPartyTracking: true })
    Note over ReoInit: NEW: Third-party tracking enabled<br/>(adds 28 bytes to page identity)
    
    opt Reo undefined
        Browser->>Browser: Skip Reo.init call
    end
    
    ReoInit->>ThirdParty: Enable third-party tracking integrations
    ThirdParty-->>ReoInit: Tracking ready confirmation
    
    Browser->>Gate: Post-build verification
    Note over Gate: site-build-gate-baseline.json<br/>SNMP heavy-page identity updated
    
    alt SNMP Profile Format page
        Gate-->>Gate: Check page size (518,474 bytes)
        Gate-->>Gate: Match updated identity hash
        Gate-->>Browser: Allow (no regression)
    else Other pages
        Gate-->>Gate: Verify size thresholds
        Gate-->>Browser: Allow (unchanged)
    end
Loading

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread docusaurus.config.js
window.addEventListener('load', function() {
if (typeof Reo !== 'undefined') {
Reo.init({ clientID: '8a197d1119ef2d4' });
Reo.init({ clientID: '8a197d1119ef2d4', enableThirdPartyTracking: true });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: This enables Reo third-party tracking for every visitor without a consent gate. Gate both the Reo script and Reo.init on accepted Performance Cookies, or keep this option disabled for visitors who decline tracking.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docusaurus.config.js, line 296:

<comment>This enables Reo third-party tracking for every visitor without a consent gate. Gate both the Reo script and `Reo.init` on accepted Performance Cookies, or keep this option disabled for visitors who decline tracking.</comment>

<file context>
@@ -293,7 +293,7 @@ module.exports = {
           window.addEventListener('load', function() {
             if (typeof Reo !== 'undefined') {
-              Reo.init({ clientID: '8a197d1119ef2d4' });
+              Reo.init({ clientID: '8a197d1119ef2d4', enableThirdPartyTracking: true });
             }
           });
</file context>

@sashwathn
sashwathn merged commit 69fba94 into master Dec 2, 2026
13 checks passed
@sashwathn
sashwathn deleted the reo-third-party-tracking branch December 2, 2026 10:04
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.

2 participants