---
title: "Snapchat Pixel"
description: "加载 Snapchat Pixel，并选择自动或手动触发页面浏览事件。"
canonical_url: "https://nuxt-scripts.zhcndoc.com/scripts/snapchat-pixel"
last_updated: "2026-08-11T09:33:01.263Z"
---

[Snapchat Pixel](https://businesshelp.snapchat.com/s/article/snap-pixel-about) 会将浏览器事件报告给 Snapchat Ads，用于转化衡量。

使用 [`useScriptSnapchatPixel()`](/scripts/snapchat-pixel) 加载 Pixel 并访问其 `snaptr` API。

<script-stats>



</script-stats>

<script-docs>



</script-docs>

## 页面浏览量

此集成默认不会发送 `PAGE_VIEW`。请显式启用初始化事件。Snapchat 的[官方页面浏览量代码片段](https://businesshelp.snapchat.com/articles/en_US/Knowledge/pixel-bigcommerce)使用相同的 `snaptr('track', 'PAGE_VIEW')` 命令：

```ts
const { proxy } = useScriptSnapchatPixel({
  id: 'YOUR_PIXEL_ID',
  trackPageView: true,
})

// 当您的跟踪政策要求时，稍后发送页面浏览量。
proxy.snaptr('track', 'PAGE_VIEW')
```

<script-types>



</script-types>
