-
Notifications
You must be signed in to change notification settings - Fork 1
Google Ads View Item Events
The configurable-product integration dispatches a view_item event when a complete option selection resolves to an associated product. It exposes a custom browser event for consent and tag-manager integrations, and can call gtag directly when enabled.
This event bridge uses Magento's RequireJS integration. Version 1.0.0 supports native Hyva configurable deep-link selection, but does not add a Hyva Google Ads event bridge. Verify or provide a separate theme integration before relying on events there.
Documentation baseline: release
v1.0.0. Last reviewed: 2026-09-09.
The event detail contains:
{
"value": 29.99,
"items": [
{
"id": "CHILD-SKU",
"google_business_vertical": "retail"
}
]
}value comes from the selected option's final price. The item ID uses the associated product SKU when available.
After a new complete selection, the module dispatches:
mageos:shopping-feed:view-item
This browser event is dispatched independently of direct gtag delivery. A consent platform or tag manager can listen for it and decide when or whether to forward the data.
To permit a direct Google tag call:
- Open Stores > Configuration > Mage-OS > Mage-OS Shopping Feed.
- Set Enable Google Ads Dynamic Remarketing Events to Yes.
- Optionally set Google Ads Destination ID, such as
AW-123456789.
If window.gtag exists, the module calls:
gtag('event', 'view_item', eventData)When a destination ID is configured, the event includes send_to. Leave it empty when Google Tag Manager or another integration owns routing.
The module does not install a Google tag or a consent-management platform. The storefront must load and govern those systems. Do not enable direct delivery until the site's consent behavior has been reviewed for the applicable jurisdictions and policies.
The script remembers the last resolved product ID and does not emit another event for the same selection until the resolved child changes.
- Test a configurable product with swatches.
- Test one with dropdowns.
- Confirm no event fires for an incomplete selection.
- Confirm one event fires when a new child resolves.
- Confirm ID and value match the selected child.
- Confirm the consent and tag-manager behavior in allowed and denied states.
See Google's current dynamic remarketing documentation for the receiving platform requirements.
Mage-OS Shopping Feed
Start here
- Status and compatibility
- Release 1.0.0
- Installation and upgrade
- Quick start
- Migration and coexistence
- Feed types and lifecycle
Feed guides
Configuration
- General configuration
- Columns and directives
- Categories and taxonomy
- Filters and transformations
- Product options
- Complex products
- Shipping
Operations
- Manual and CLI generation
- Scheduling and queues
- FTP, SFTP, and gzip uploads
- Testing one product
- Logs and troubleshooting
- Performance and large catalogs
Storefront integrations
Maintainers