Skip to content

magento-integration: report the page section from magento's route - #5

Merged
rockwellll merged 2 commits into
mainfrom
page-section
Nov 3, 2026
Merged

rockwellll merged 2 commits into
mainfrom
page-section

Conversation

@rockwellll

Copy link
Copy Markdown
Contributor

Part of hellotext/hellotext#6746.

Magento's storefront now reports the page section, like the Shopify widget, the VTEX pixel and the Fenicio GTM container. The Webchat report uses it to show where conversations start.

  • Block\Init::getPageSection() maps Magento's route to a section, and init.phtml passes it to the bridge as pageSection:
    • cms/index/index → homepage
    • catalog/category/view → product_collection
    • catalog/product/view → product_details
    • Other pages, search results included (VTEX doesn't map search either), have no section.
  • bridge.js sets Hellotext.page.section after every Hellotext.initialize. Initializing builds a new page, and the bridge initializes again when the session changes. Page views, product views and Webchat messages all carry the section.
  • hellotext.js already loads from the unversioned jsDelivr URL, so it stays on the latest release.
  • Release 1.0.3: composer.json, etc/module.xml and the changelog. No tag has been pushed yet.

The Smart Alert is not shown on Magento.

🤖 Generated with Claude Code

rockwellll and others added 2 commits November 3, 2026 18:27
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T21:29:57.951191Z 89359fc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@rockwellll
rockwellll merged commit a810192 into main Nov 3, 2026
5 checks passed
@rockwellll
rockwellll deleted the page-section branch November 3, 2026 21:30
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.

1 participant