登录

欢迎来到我们的支持中心

获取整合和上线广告活动的相关帮助。

欢迎来到我们的支持中心. 获取整合和上线广告活动的相关帮助。

缺少强制或可选信息,或者信息格式不正确

Criteo requires specific dynamic and static parameters to be passed into the Criteo OneTag, so that user browsing intent can be tracked and the Criteo Engine can build relevant product recommendations to be displayed on the Criteo creatives (banners).

The following three parameters are common across all the different pages where the Criteo OneTag is implemented:

  • 帐户 ID
  • 网站类型
  • Email

 

强制参数

帐户 ID

This is your Criteo Account ID, provided during the initial set up of the Criteo OneTag. If your Account ID is 1234 then the Criteo OneTag should look like this:

 { event: "setAccount", account: 1234 }

网站类型

The site type parameter is a dynamic parameter, present in the Criteo OneTag across all your site's pages. If your site has different versions to support a range of devices, indicate which version is displayed to the user via the “setSiteType” parameter:

  • d 表示台式机
  • m 表示手机
  • t 表示平板电脑

如果您没有手机或平板电脑特定的网站,请将值设置为 d

台式机版本网站的 setSiteType 事件:

{ event: "setSiteType", type: "d" },


setSiteType parameter for the mobile version of a site:

{ event: "setSiteType", type: "m" },


setSiteType parameter for the tablet version of a site:

{ event: "setSiteType", type: "t" },

产品 ID、价格、数量和订单 ID

In addition to the above parameters, the implementation of the Criteo OneTag in the Search Listing, Product, Basket and Sales Confirmation pages require other parameters (Product ID, Price, Quantity and Transaction ID)


Product ID is necessary for the Criteo OneTag to match what your users are looking at with the available products from your feed. If the ID for the product displayed on the page is B234, the viewItem event will look like:
viewItem event example:

{ event: "viewItem", item: "B234" }



If the IDs for the top three products displayed on the search result or category listing page are A111, B234 and H556, the viewList event will look like:
viewList event example:

{ event: "viewList", item: ["A111", "B234", "H556"] }


If the user has added two items to the basket:

  • 两件 ID 为 A122 的产品,单价为 44.90 英镑
  • 一件 ID 为 F5532 的产品,单价为 85.00 英镑

那么 viewBasket 事件将如下所示:

 { event: "viewBasket",  item: [ { id: "A122", price: 44.90, quantity: 2 },
{ id: "F5532", price: 85.00, quantity: 1 }
]}

如果用户已经购买:

  • 两件 ID 为 A122 的产品,单价为 44.90 英镑
  • 一件 ID 为 F5532 的产品,单价为 85.00 英镑

并且这次交易的订单 ID 为 G555999,那么 trackTransaction 事件将如下所示:

{ event: "trackTransaction", id: "G555999",
item: [ { id: "A122", price: 44.90, quantity: 2 },
{ id: "F5532", price: 85.00, quantity: 1 }
]}

可选参数

Email

The email parameter is a dynamic parameter that is present in the Criteo OneTag across all your site's pages. This parameter is used for Criteo Cross Device that enables Criteo to accurately match users across multiple devices. In the email parameter field, pass the customer email address (trimmed of spaces and converted to lowercase) and Criteo will hash it using an MD5 algorithm before it is stored on our servers. Hash encrypted email addresses are irreversible and anonymous, so Criteo cannot access your users' addresses.

setEmail 参数示例:

{ event: "setEmail", email: "user@example.com" },

如果未提供 email 地址,请将它留空。

值为空的 setEmail 参数示例:

{ event: "setEmail", email: "" },


Alternatively, you can pass the encrypted email address using an MD5 hash function (here a link to a page with some examples on different programming languages of MD5 hash functions). In this case, you should replace the default "setEmail" with “SetHashedEmail” as shown below.

Finally, you must pass the dynamically encrypted email address, after it has been trimmed and converted to lowercase.

经过加密处理的 email 地址 user@example.com 的 setHashEmail 事件示例:

{ event: "setHashedEmail", email: "b58996c504c5638798eb6b511e6f49af" },


Please leave this parameter blank if an email address is not available. Example:

{ event: "setHashedEmail", email: "" },

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助
由 Zendesk 提供技术支持