阅读完所有主题后,我仍然没有弄清楚为什么我的Android应用程序没有将电子商务价值发送给分析.(或者它可能但它没有显示)我在GA中激活了电子商务,我使用v2并在orderComplete上添加了以下代码:
GoogleAnalytics ga = GoogleAnalytics.getInstance(ctx);
Transaction cardTransaction = new Transaction.Builder(
String.valueOf(order.getOrderId()), // (String) Transaction Id, should be unique.
orderTotal // (long) Order total (in micros)
.setAffiliation(cardName) // (String) Affiliation
.setTotalTaxInMicros(0) // (long) Total tax (in micros)
.setShippingCostInMicros(0) // (long) Total shipping cost (in micros)
.setCurrencyCode("EUR") // (String) Setting the correct currency
.build();
cardTransaction.addItem(new Item.Builder(
caption, // (String) Product SKU (stock-keeping unit)
productName, // (String) Product name
price, // (long) Product price (in micros)
quantity) // (long) Product quantity
.setProductCategory(productCategorie) // …Run Code Online (Sandbox Code Playgroud) 我正在制作一个新主题,但在加载CSS时遇到问题。尽管我认为对Drupal的文档是正确的,但它不起作用。
我在/ themes / custom / noadin中创建了一个文件夹,并添加了信息和库文件
noadin.info.yml:
name: noadin
description: 'My new theme'
type: theme
core: 8.x
libraries:
- noadin/global-styling
- noadin/global-scripts
Run Code Online (Sandbox Code Playgroud)
并创建了noadin.libraries.yml:
global-styling:
version: VERSION
css:
theme:
css/style.css: {}
global-scripts:
version: VERSION
js:
js/script.js: {}
Run Code Online (Sandbox Code Playgroud)
样式表位于/ themes / custom / noadin / css
谁能告诉我我的误解是什么?
ps Drupal采用了正确的主题。