The Generic Embed can send successful image and animation events to GA4, Google Tag Manager, or Mixpanel when the corresponding provider is already available on the storefront page.
Enable merchant analytics
In the Trylora dashboard:
- Open the store’s Settings tab.
- Find Analytics.
- Turn on Enable merchant analytics.
- Turn on only the destinations that exist on the storefront.
- Select Save Store Settings.
Provider requirements
Google Analytics 4
Enable Google Analytics 4 when the page exposes window.gtag. Trylora calls:
Animation results use trylora_animation_succeeded.
Google Tag Manager
Enable Google Tag Manager when the page exposes window.dataLayer as an array. Trylora pushes:
Create GTM triggers and destination tags for the two Trylora event names.
Mixpanel
Enable Mixpanel when the page exposes window.mixpanel.track. Trylora calls mixpanel.track with the event name and product payload.
A destination toggle does not install that provider. If its page global is unavailable, Trylora skips that destination without blocking the shopper experience.
Event timing
Trylora emits an event once when a new result transitions to ready during the current widget session. It does not emit for:
- A queued or running result
- A failed result
- A result that was already ready when event tracking initialized
- Browser extension mode
For the exact names and fields, see Analytics events.
Verify delivery
- Confirm the provider is initialized before completing the try-on.
- Complete a new image try-on.
- Inspect the provider’s debug or real-time view for
trylora_tryon_succeeded.
- Generate an animation and look for
trylora_animation_succeeded.
- Confirm
trylora_product_url identifies the intended product.
If events do not appear, use Troubleshooting.