Liquid、JavaScriptなどに関する質問
アフィリエイトサイト(アメバピック)の測定タグについて質問があります!
チェックアウト>追加スクリプトにて追加しましたが、amountとitemのどころがエラーです。。
!function(e,t,n,r,a,c,s){e.TrackerObject=a,e[a]=e[a]||
function(){(e[a].q=e[a].q||[]).push(arguments)},
e[a].l=1*new Date,c=t.createElement(n),
s=t.getElementsByTagName(n)[0],c.async=1,c.src=r+"?_t="+e[a].l,
s.parentNode.insertBefore(c,s)}
(window,document,"script","https://script-ad.mobadme.jp/js/tracker.js","trk");
trk("configure", "type", "1");
trk("configure", "conversion_type", "1");
trk("configure", "uid", "1021");
trk("configure", "amount", "306000"); ←0が2つ多い
trk("configure", "item", "#<Checkout::LineItem:0x00007f13362d3a48>#<Checkout::LineItem:0x00007f13362d39f8>"); ←itemがちゃんと返ってきていない
trk("configure", "status", "1");
trk("configure", "hash", "");
trk("send", "44513");
※trk("configure", "amount", "306000");
→trk("configure", "amount", "306000"/100); にすれば解決できそうですが、どうでしょうか。
※trk("configure", "item", "#<Checkout::LineItem:0x00007f13362d3a48>#<Checkout::LineItem:0x00007f13362d39f8>");
→shopifyのThe checkout objectに書いてある通りしましたが、
itemが取れてない状態です。
元(trk("configure", "item", "{{checkout.line_items}}");)
もしかしたら
trk("configure", "item", "item");
の方が測定できますでしょうか。
karte supportというサイトから参考にしました。
(https://support.karte.io/post/2n0VFdxwe3z9wmsYVVCPcG)
ご存じの方がいらっしゃいましたら、
是非よろしくお願い致します。
ユーザー | ランク |
---|---|
36 | |
11 | |
7 | |
6 | |
6 |
すべてのShopifyアカウントはデフォルトではmyshopify.comのURLと関連付けられており、これはアカウント設定時に使用したビジネス名に基づいて作成されます。しかし、オ...
By Nina_13 Nov 26, 2023このトピックは英語版コミュニティの投稿:Shopify Web Pixel Manager Sandbox FAQの日本翻訳です。
By Mirai Nov 19, 2023Shopifyの管理画面では、商品ごとや配送元のロケーション(倉庫)ごとにカスタム配送料を設定することができます。特に購入金額による送料無料設定は、顧客の購買意欲を高める効果的な手...
By Alex06 Nov 5, 2023