小编Lia*_*iam的帖子

Angularjs嵌套状态:3级

我正在使用Agnularjs和Ionic Framework.我试图实现嵌套状态,如下所示,

  • Eventmenu(根)
  •   家(2级)
  •     首页1(3级)
  •     家2
  •   报到
  •   与会者

我的路线文件看起来像,

angular.module('ionicApp', ['ionic'])

.config(function($stateProvider, $urlRouterProvider) {

  $stateProvider
    .state('eventmenu', {
      url: "/event",
      abstract: true,
      templateUrl: "event-menu.html"
    })
    .state('eventmenu.home', {
      url: "/home",
      views: {
        'menuContent' :{
          templateUrl: "home.html"
        }
      }
    })
      .state('eventmenu.home.home1', {
      url: "/home1",
      views: {
        'menuContent' :{
          templateUrl: "home1.html"
        }
      }
    })
        .state('eventmenu.home.home2', {
      url: "/home2",
      views: {
        'menuContent' :{
          templateUrl: "home2.html"
        }
      }
    })
    .state('eventmenu.checkin', {
      url: "/check-in",
      views: {
        'menuContent' :{
          templateUrl: "check-in.html",
          controller: "CheckinCtrl"
        }
      }
    })
    .state('eventmenu.attendees', { …
Run Code Online (Sandbox Code Playgroud)

angularjs angularjs-routing ionic-framework

31
推荐指数
1
解决办法
2万
查看次数

使用度量协议增强电子商务 - 只有事务才会出现在分析中

我正在查看文档:https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#enhanced-ecomm 任何人都知道一个链接,用示例代码解释我们如何使用增强型电子商务和测量在同一笔交易中有多个产品的协议?

我将以下内容发布到https://ssl.google-analytics.com/collect

[
'v'       => 1,
'tid'     => 'UA-52479722-1',
'cid'     => '555',
't'       => 'transaction',
'ti'      => '9998',
'tr'      => '100',
'tt'      => '10',
'cu'      => 'AUD',
'pa'      => 'purchase',
'pr[1]id' => '1',
'pr[1]nm' => 'Test Product',
'pr[1]ca' => 'Test Category',
'pr[1]qt' => '2',
'pr[1]pr' => '100'

]
Run Code Online (Sandbox Code Playgroud)

我可以看到该交易显示在我的Google Analytics分析报告中,但没有产品.

google-analytics google-analytics-api measurement-protocol

2
推荐指数
1
解决办法
1495
查看次数