请问fb Pixel插件为何接收不到加购事件

bug问题 · yiqingjs · 于 1年前 发布 · 820 次阅读

如题:前端显示的

fbq("track", "ViewContent", {
    "contents": [
        { "id": "", "quantity": 1 }
    ],
  "content_type": "product",
  "value":,
  "currency": "USD"
});

// fb: add to cart

$("#js_registBtn").click(function(e){
    //e.stopImmediatePropagation();
    var gaQty = $(".qty").val();
    // show loading icon
    $(this).addClass("dataUp");
    $(this).addClass("position-relative");
    $("#loading141286").addClass("show");
    
    var quantity = gaQty > 0 ? gaQty : 1;
    // 【ga event: add_to_cart】
    
    fbq("track", "AddToCart", {
        "contents": [
            { "id": "", "quantity": quantity }
        ],
        "content_type": "product",
        "value": ,
        "currency": "USD"
    });
    
});

});

发起结账事件也不正常 现有问题: 像素未与目录配对 Product(商品)参数缺失

共收到 9 条回复 fecshop
Fecmall#11年前 0 个赞

您是原生的fecmall,还是安装了fecro等其他的扩展

yiqingjs#21年前 0 个赞

@Fecmall #1楼 你好 fecmall 安装了melani_theme主题

yiqingjs#31年前 0 个赞

我发现谷歌也获取不到

{ event: "add_to_cart", gtm: {

uniqueEventId: 13,
start: 1664630895230,
priorityId: 1,
allowlist: undefined,
blocklist: undefined,
whitelist: undefined,
blacklist: undefined

}, tagTypeBlacklist: undefined, eventModel: {

event_callback: "Function",
items: [
  {
    id: null,
    name: "",
    list_name: "Product Detail Results",
    brand: "",
    category: "",
    variant: "",
    list_position: 1,
    quantity: "1",
    price: null
  }
],
send_to: "G-S54NS2K"

}, eventCallback: "Function" }

Fecmall#41年前 0 个赞

@yiqingjs #3楼 吧这个模板插件关掉试试。

yiqingjs#51年前 0 个赞

@Fecmall #4楼 关掉也不行,像产品列表页,的产品数据就可以正常推送,单品页的却不行

yiqingjs#61年前 0 个赞

{ event: "view_item_list", gtm: {

uniqueEventId: 10,
start: 16646372772,
priorityId: 1,
allowlist: undefined,
blocklist: undefined,
whitelist: undefined,
blacklist: undefined

}, tagTypeBlacklist: undefined, eventModel: {

items: [
  {
    id: "680319033698A",
    name: "small",
    list_name: "Category Results",
    brand: "ckj",
    category: "Luxury",
    list_position: 1,
    quantity: 1,
    price: "70.00",
    url: "https://***" +
         "ses"
  }
],
send_to: "UA-24380"

} }

列表页的读取正常

Fecmall#71年前 0 个赞

@yiqingjs #6楼

您可以先研究一下,国庆节后我看一下原因、

8楼 已删除.
yiqingjs#91年前 0 个赞

@Fecmall #7楼 $data里的["productM"]=> NULL

yiqingjs#101年前 0 个赞

@Fecmall #7楼 大佬修复一下

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics