facebookにカタログ連携したいのですが、ピクセル連携がうまくってないようです。
しかしshopifyのfacebookアプリだと連携されている?ようなのです。
カタログも連携準備はできている?と思うのですが、ピクセルが連携できていない為にコマースアカウントが承認されていません。
そこでfacebookのマイクロデータデバックツールへ入力したところ、トップページ、トップページのオススメ商品に対してidやpriceを入力するようエラーが出ました。
しかしトップページのidとはどこを指すのかが分からず、またおすすめ商品の価格も表示されているので、修正すべき箇所が分からない状態です。
OpenGraphとSchema.orgに関してもあまり理解できておらず‥
facebookの設定で、shopifyとリンクしてあればそれで完結という訳では無いのでしょうか?
念の為こちらがトップページのオススメ商品htmlになります
featured-product.liquid
{%- assign product = all_products[section.settings.featured_product] -%}
{%- assign current_variant = product.selected_or_first_available_variant -%}
{%- assign featured_image = current_variant.featured_image | default: product.featured_image -%}
{%- if product == empty -%}
{%- assign section_onboarding = true -%}
{%- assign vendor = 'homepage.onboarding.product_vendor' | t -%}
{%- assign title = 'homepage.onboarding.product_title' | t -%}
{%- assign compare_at_price = 2999 -%}
{%- assign price = 1999 -%}
{%- else -%}
{%- assign section_onboarding = false -%}
{%- assign vendor = product.vendor -%}
{%- assign title = product.title -%}
{%- assign compare_at_price = current_variant.compare_at_price -%}
{%- assign price = current_variant.price -%}
{%- endif -%}
{% unless section_onboarding %}
{% for image in product.images %}
{% capture img_id %}ProductImage-{{ image.id }}{% endcapture %}
{% capture wrapper_id %}ProductImageWrapper-{{ image.id }}{% endcapture %}
{%- assign img_url = image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}
{% include 'image-style' with image: image, width: 720, height: 600, small_style: true, wrapper_id: wrapper_id, img_id: img_id %}
{% if compare_at_price > price %}
{{ 'products.product.on_sale' | t }}
{% endif %}
{% endfor %}
{% else %}
{{ 'product-1' | placeholder_svg_tag: 'placeholder-svg' }}
{% endunless %}
# {{ title }}
{% if section.settings.vendor_show %}
{{ vendor }}
{% endif %}
{% if compare_at_price > price %}
{{ 'products.product.sale_price' | t }}
{% else %}
{{ 'products.product.regular_price' | t }}
{% endif %}
{{ price | money }}
{% if compare_at_price > price %}
{{ 'products.product.regular_price' | t }}
<s>
{{ compare_at_price | money }}
</s>
{% endif %}
{% include 'product-unit-price', variant: current_variant, available: true %}
{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{%- if shop.taxes_included -%}
{{ 'products.product.include_taxes' | t }}
{%- endif -%}
{%- if shop.shipping_policy.body != blank -%}
{{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- endif -%}
{%- endif -%}
{% unless product == empty %}
{%- assign productClasses = 'product-form' -%}
{%- if product.has_only_default_variant -%}
{%- assign productClasses = productClasses | append: ' product-form--default-variant-only' -%}
{%- endif -%}
{% form 'product', product, class: productClasses %}
{% if section.settings.product_quantity_enable %}
{% endif %}
{% if section.settings.enable_payment_button %}
{{ form | payment_button }}
{% endif %}
{% endform %}
{% else %}
{% endunless %}
{{ 'products.product.full_details' | t }} →
{% if section.settings.social_sharing_products %}
{% include 'social-sharing', share_title: title, share_permalink: product.url, share_image: product %}
{% endif %}
{% unless product == empty %}
{% endunless %}
カタログ連携ができないとinstagramショッピングもできないので、もし何かご存知の方がいらっしゃれば教えていただけると助かります。
よろしくお願いいたします。





