| 开发者 | |
|---|---|
| 更新时间 | 2026年10月9日 04:32 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
[gecx_agent_button] shortcode or the launcher block.[gecx_suggested_prompts] shortcode or block./wp-content/plugins/ directory, then activate the plugin through the 'Plugins' screen in WordPress.Not yet. Back-in-stock alerts are planned for a future release of the service.
Access is currently by invitation. You can install the plugin without it, but connecting a store and linking an agent needs a Google account that has been given access.
Only the chat widget script from www.gstatic.com, and only on storefronts with a linked, enabled agent. The widget stylesheet ships with the plugin. See 3rd Party Services above.
The store URL and admin tokens during setup, and shoppers' chat messages and viewed products while they chat. The 3rd Party Services section above lists exactly what is sent and when.
With the Top navigation menu placement, the launcher joins your header menu and your theme's mobile menu, and moves beside the menu (hamburger) button whenever your theme shows one. If it cannot find a place on screen, it appears as a floating button instead.
If it lands in the wrong menu, choose one under Launcher Placement > Menu. Menus built with page builders such as Elementor appear there too. To place it yourself, choose Manual and add the [gecx_agent_button] shortcode or the Gemini Enterprise for CX Launcher block where you want it, for example in a header template.
Themes that replace page content without a full page load can call window.gecxInit() afterwards. The plugin also watches for content added after the page loads.
The chat widget's colors, fonts and branding come from your agent's settings in the Gemini Enterprise for CX console, not from your WordPress theme. The widget applies that branding itself.
The floating button moves up to clear bars your theme fixes to the bottom of the screen. To add more space, set the --gecx-floating-extra-offset CSS variable, for example :root { --gecx-floating-extra-offset: 24px; }.
Yes. The launcher scripts are kept out of the JavaScript delay features of WP Rocket, LiteSpeed Cache and Cloudflare Rocket Loader automatically. With other optimization plugins, exclude storefront.js, gstatic.com/gecx/ and gecxStorefrontConfig from delaying. To opt out of the automatic exclusions, return false from the gecx_exclude_from_js_delay filter.
AMP pages cannot run the chat widget, so the plugin outputs nothing on them. Headless storefronts served from a different origin are not supported, because the plugin only hands a shopper's session credentials to pages on the store's own origin. The launcher and widget load in the page footer, so custom page templates must call wp_footer(), as WordPress requires.
After the agent changes the cart, the plugin refreshes WooCommerce cart fragments, updates the WooCommerce Blocks cart data store, and dispatches wc-blocks_added_to_cart or wc-blocks_removed_from_cart. Themes and side-cart plugins that need more can listen for the gecx:cart-updated event on document.body or use the filters documented in the developer notes.
vendor/, under the Google\Gemini_Enterprise_For_CX namespace. The global GECX_* classes are removed without aliases, so code that referenced them must use the namespaced classes. No behavior changes.build/scripts/ instead of assets/js/ (unminified when SCRIPT_DEBUG is on), with dependencies and versions taken from the generated asset files. Script handles are unchanged; if a caching or optimization plugin excludes assets/js/storefront.js by path, exclude build/scripts/storefront/ instead.languages/ folder and the Domain Path header.