登录
登录
ANA像素追踪归因分析数据分析广告管理
Z1
AI 建站
全部产品
案例服务价格关于帮助
联系我们

像素

/

2 min read

Test your setup with Preview Mode

Turn on Preview Mode to watch events fire in real time and replay popups while you build.

Preview Mode is the fastest way to confirm the Zalify Pixel is working. It mounts an on-page debug panel that shows every event the Pixel fires — no extra install and no separate tool. It's built into pixel.js.

Enter Preview Mode

Add ?zalify-preview=true to any page URL on your site and load it:

https://your-store.com/?zalify-preview=true

The flag is stored in localStorage (scoped to that origin), so Preview Mode stays on as you browse around the site — you don't need to re-add the parameter on every page.

Read the debug panel

Once Preview Mode is on you'll see:

  • A floating chip in the bottom-right with a live count of events fired.
  • Full event payloads when you expand the panel, each tagged as a command or a trigger_action.
  • Diagnostic rows for trigger and popup lifecycle events, so you can see what fired and why.

Reload the page or navigate around, and watch the count climb as page views and events register.

Replay popups while you build

Testing a popup usually means clearing gates and reloading. Preview Mode does it for you:

  • The replay toolbar shows a pill for each popup it has seen. Click one to clear its sessionStorage gates and re-fire show_popup immediately.
  • Warnings get an inline re-fire button that clears the trigger's gates and re-runs its actions — handy when a trigger only fires once per session.

Exit Preview Mode

Either visit ?zalify-preview=false, or click the Exit button in the panel. Both clear the flag and reload the page back to normal.

Preview bypasses consent

Visitors in Preview Mode skip the consent gate, so you can test tracking and popups even before accepting a consent banner. That's intentional — it's for your internal testing. Real visitors are still gated normally.

Test on mobile too

The panel is responsive and collapses on screens 480px and narrower, so you can preview and debug on a phone the same way you do on desktop.

Next steps

上一篇

Install the Zalify Pixel on Shopify

下一篇

Configure consent (GDPR/CCPA)