# TikTok像素安装与创建事件

## 1.需求背景 <a href="#tiktok-xiang-su-1.-xu-qiu-bei-jing" id="tiktok-xiang-su-1.-xu-qiu-bei-jing"></a>

单页需要在tiktok平台引流，从而需要安装pixcel代码以及根据页面事件进行数据追踪。

## 2.像素安装与创建事件 <a href="#tiktok-xiang-su-2.-xiang-su-an-zhuang-yu-chuang-jian-shi-jian" id="tiktok-xiang-su-2.-xiang-su-an-zhuang-yu-chuang-jian-shi-jian"></a>

{% file src="<https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2Ftpkrp9aaj4WaFY6eXo2a%2FTikTok_Pixel_%E6%93%8D%E4%BD%9C%E6%8C%87%E5%8D%97%20.pdf?alt=media&token=75ec63b4-f162-4e7e-9d92-6b0b1e15bbe5>" %}

## 3.事件文档 <a href="#tiktok-xiang-su-3.-shi-jian-wen-dang" id="tiktok-xiang-su-3.-shi-jian-wen-dang"></a>

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FDFxxLe7r9jvivKl918kw%2Fimage.png?alt=media&#x26;token=ae0b8352-727e-4806-b770-586c932542b9" alt=""><figcaption></figcaption></figure>

## 4.具体流程 <a href="#tiktok-xiang-su-4.-ju-ti-liu-cheng" id="tiktok-xiang-su-4.-ju-ti-liu-cheng"></a>

#### 4.1打开TikTok Ads后台创建pixcel，选择手动安装pixcel代码

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FXK7kGl53q6WbxNEzX8mO%2Fimage.png?alt=media&#x26;token=bf37bc4e-9baa-478b-94a5-d67a2edfb44d" alt=""><figcaption></figcaption></figure>

#### 4.2.创建完成之后，需要在电商单页后台把pixcel Id绑定到对应商品（默认开发已经安装pixcel代码）

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2F9fCDH54Rs4sWdmYXUjdU%2Fimage.png?alt=media&#x26;token=39762b42-1162-4a8d-9290-05d684d7cd5f" alt=""><figcaption></figcaption></figure>

#### 4.3创建完成之后，就可以开始创建追踪事件，选择自定义事件

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FvwlbooKsUaarDMqVefds%2Fimage.png?alt=media&#x26;token=f7ac7075-86c3-4cb2-b6f7-3aa8dc784476" alt=""><figcaption></figcaption></figure>

#### 4.4按照页面跳转流程依次添加以下事件，共6个

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FuPO2elOs1VgZPrq4uk8x%2Fimage.png?alt=media&#x26;token=950c2afc-8dfc-47d8-924b-4beb2290686e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2F6a5ziHx4q3S1HU30n8OQ%2Fimage.png?alt=media&#x26;token=6dd69949-8ceb-4a5e-8574-3bd69075123a" alt=""><figcaption></figcaption></figure>

#### 4.5.创建完事件之后，根据上表选择不同追踪方式，并依次添加每个事件对应规则

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FNXsRBsTelrgIDJUY7g1S%2Fimage.png?alt=media&#x26;token=65d56df8-ff7a-4799-b40a-057f9d68ca02" alt=""><figcaption></figcaption></figure>

1）页面浏览

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FPpmC3Ojv6UTgeLZJyqjx%2Fimage.png?alt=media&#x26;token=29e85fa0-003d-4c5a-8953-bd54856e2cc8" alt=""><figcaption></figcaption></figure>

2）加入购物车

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2Fvcy7lEd7Rqd2XsmAFEG3%2Fimage.png?alt=media&#x26;token=6ba15165-7131-4b7c-b00b-4c3af15f3242" alt=""><figcaption></figcaption></figure>

3）商品详情页浏览

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FI2IestBS64qIs94OYFX9%2Fimage.png?alt=media&#x26;token=bdf41ced-4e7e-4dd2-9fce-d9201abb100b" alt=""><figcaption></figcaption></figure>

4）表单填写

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FRtVGvjmmksMd743wvUps%2Fimage.png?alt=media&#x26;token=4c9d5914-9095-4263-aef8-c0a153065bdf" alt=""><figcaption></figcaption></figure>

5）下单事件

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FfjLklByd9yinE5ZBZBNQ%2Fimage.png?alt=media&#x26;token=d402467b-7995-483f-8c90-ccf5263ac0d7" alt=""><figcaption></figcaption></figure>

6）支付完成

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2F6KIVJk4xX66o50RiOLpp%2Fimage.png?alt=media&#x26;token=c253a377-1ef6-4ff0-a8e6-9732b20cd20c" alt=""><figcaption></figcaption></figure>

## 5.总结 <a href="#tiktok-xiang-su-5.-zong-jie" id="tiktok-xiang-su-5.-zong-jie"></a>

因为三个模板单页的url以及传参一致，且点击事件CSS一致，所以多个商品单页可共用一个pixcel

1）完成上述操作之后就可以在tiktok后台看到事件漏斗分析数据

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2FSKGmf8S3st9PSD6TXnFa%2Fimage.png?alt=media&#x26;token=a7b36466-eee7-4fcb-9398-c76384edae18" alt=""><figcaption></figcaption></figure>

2）pixcel像素也可在google插件（TikTok Pixel 助手）中查看

<figure><img src="https://4095400225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvbs6yy9KqpPWWRL8a3J%2Fuploads%2F9gekdVGaJMw9dcoxAeek%2Fimage.png?alt=media&#x26;token=7ae2709f-b3f7-4c26-b27a-16c8d2ae5d5d" alt=""><figcaption></figcaption></figure>
