以下は、非常に単純な購入プロセスのために、e コマースで実行された Google アナリティクス JavaScript コード ( GA Debugでキャプチャ) です。
1) ホームページに移動します
ga("create", "UA-NNNNNNN-1", "auto")
ga("require", "ec")
ga("require", "ec")
ga("require", "ec")
ga("set", "&cu", "EUR")
ga("ec:addImpression", {id: "488", name: "Light Coral", list: "Home Page list", category: "Some/Category/Path", price: "4.50", brand: "Coral", position: 1})
ga("ec:addImpression", {id: "487", name: "Light Purple", list: "Home Page list", category: "Some/Category/Path", price: "4.50", brand: "Purple", position: 2})
ga("ec:addImpression", {id: "489", name: "Light Pink", list: "Home Page list", category: "Some/Category/Path", price: "4.50", brand: "Pink", position: 3})
ga("ec:addImpression", {id: "491", name: "Light Red", list: "Home Page list", category: "Some/Category/Path", price: "4.50", brand: "Red", position: 4})
ga("ec:addImpression", {id: "717", name: "Light Blue", list: "Home Page list", category: "Some/Category/Path", price: "6.00", brand: "Blue", position: 5})
ga("ec:addImpression", {id: "768", name: "Light Pink 2", list: "Home Page list", category: "Some/Category/Path", price: "8.00", brand: "Pink", position: 6})
ga("ec:addImpression", {id: "92", name: "Light Green", list: "Home Page list", category: "Some/Category/Path", price: "5.95", brand: "Green", position: 7})
ga("ec:addImpression", {id: "712", name: "Light Orange", list: "Home Page list", category: "Some/Category/Path", price: "6.50", brand: "Orange", position: 8})
ga("send", "pageview")
2) 1 つの製品 (ホームページ上) をクリック > 製品ページを開く
ga("ec:addProduct", {id: "717", name: "Light Blue", category: "Some/Category/Path", price: "6.00", brand: "Blue", position: 5})
ga("ec:setAction", "click", {list: "Home Page list"})
ga("send", "event", "UX", "click", "Home Page list")
ga("create", "UA-NNNNNNNN-1", "auto")
ga("require", "ec")
ga("require", "ec")
ga("require", "ec")
ga("require", "ec")
ga("require", "ec")
ga("set", "&cu", "EUR")
ga("ec:addProduct", {id: "717", name: "Light Blue", brand: "Blue", category: "Some/Category/Path", price: "6"})
ga("ec:setAction", "detail")
ga("send", "pageview")
3) 商品をカートに入れる
ga("ec:addProduct", {id: "717", name: "Light Blue", brand: "Blue", category: "Some/Category/Path", price: "6", quantity: "1"})
ga("ec:setAction", "add")
ga("send", "event", "UX", "click", "Add to cart")
4) チェックアウト ページに移動します。
ga("create", "UA-NNNNNNNN-1", "auto")
ga("require", "ec")
ga("require", "ec")
ga("require", "ec")
ga("set", "&cu", "EUR")
ga("ec:addProduct", {id: "717", name: "Light Blue", price: "6.00", brand: "Blue", category: "Some/Category/Path", quantity: 1})
ga("ec:setAction", "checkout", {step: 1})
ga("send", "pageview")
5) チェックアウトプロセスに従います
ga("ec:addProduct", {id: "717", name: "Light Blue", price: "6.00", brand: "Blue", category: "Some/Category/Path", quantity: 1})
ga("ec:setAction", "checkout", {step: 2})
ga("send", "pageview")
ga("ec:addProduct", {id: "717", name: "Light Blue", price: "6.00", brand: "Blue", category: "Some/Category/Path", quantity: 1})
ga("ec:setAction", "checkout", {step: 3})
ga("send", "pageview")
ga("ec:setAction", "checkout_option", {step: 3, option: "Send to another address"})
ga("send", "event", "Checkout", "Option")
ga("ec:addProduct", {id: "717", name: "Light Blue", price: "6.00", brand: "Blue", category: "Some/Category/Path", quantity: 1})
ga("ec:setAction", "checkout", {step: 4})
ga("send", "pageview")
ga("ec:setAction", "checkout_option", {step: 4, option: "BRT"})
ga("send", "event", "Checkout", "Option")
ga("ec:addProduct", {id: "717", name: "Light Blue", price: "6.00", brand: "Blue", category: "Some/Category/Path", quantity: 1})
ga("ec:setAction", "checkout", {step: 5})
ga("send", "pageview")
ga("ec:setAction", "checkout_option", {step: 5, option: "banktransfer"})
ga("send", "event", "Checkout", "Option")
ga("ec:addProduct", {id: "717", name: "Light Blue", price: "6.00", brand: "Blue", category: "Some/Category/Path", quantity: 1})
ga("ec:setAction", "checkout", {step: 6})
ga("send", "pageview")
6) 購入を完了する
ga("create", "UA-NNNNNNNN-1", "auto")
ga("require", "ec")
ga("require", "ec")
ga("require", "ec")
ga("require", "ec")
ga("set", "&cu", "EUR")
ga("ec:addProduct", {id: "717", name: "Light Blue", price: "6.00", brand: "Blue", category: "Some/Category/Path", quantity: 1})
ga("ec:setAction", "purchase", {id: "16O00000011", revenue: "16.00", shipping: "10.00"})
ga("send", "pageview")
問題
Google アナリティクス ダッシュボードのe コマースセクションで、製品パフォーマンス カード (製品パフォーマンス > 製品名 > 製品 SKU ) に移動すると、製品カテゴリ(not set)
の下に値があります。
[概要] > [製品カテゴリ]で、製品の適切な製品カテゴリを確認できます。
さらに、Product Performanceに移動すると、 Primary Dimension: Product Category (Enhanced ecommerce)を選択し、カテゴリをクリックすると、この表に商品が表示されます。
私は何を間違っていますか?
製品パフォーマンス カード内の製品カテゴリはなぜnot set
ですか?