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)
ご存じの方がいらっしゃいましたら、
是非よろしくお願い致します。
Shopify アカデミーの学習パスと認定スキルバッジExpanding Your Shopify Business Internationallyを活用して、国際的にビジネ...
By Shopify Feb 7, 2025Shopify アカデミーの学習パスB2B on Shopify:立ち上げとカスタマイズで卸売販売に進出しましょう。これら3つの無料コースは、ShopifyストアでB2B機能...
By Shopify Jan 31, 2025サポートの選択肢が増えていく中、最適となる選択の判断が難しくなっているかと存じます。今回は問題の解決に最適となるサポートの選択方法を、紹介させて頂きます。 選択肢のご紹介...
By Mirai Oct 6, 2024