GA参数绑定设置

  1. 绑定参数数据回填
    a url: ga/getGaBingParams
    b.参数:
    param:{"trackingId":"UA-71844696-1"}
    c. 返回值
    {
    "data" : {
    "profiles" : {
    "8" : [{
    "adwordsMapping" : "[{"ecGaFieldValue":"adwordsCustomerID","modelFieldValue":"customerId","ecGaFieldName":"adwordsCustomerID","metricField":false},{"ecGaFieldValue":"adwordsAdGroupID","modelFieldValue":"adSet","ecGaFieldName":"adwordsAdGroupID","metricField":false},{"ecGaFieldValue":"adwordsCreativeID","modelFieldValue":"adId","ecGaFieldName":"adwordsCreativeID","metricField":false},{"ecGaFieldValue":"adGroup","modelFieldValue":"adGroupName","ecGaFieldName":"adGroupName","metricField":false},{"ecGaFieldValue":"date","modelFieldValue":"date","ecGaFieldName":"date","metricField":false},{"ecGaFieldValue":"sessions","modelFieldValue":"gaSessions","ecGaFieldName":"sessions","metricField":true},{"ecGaFieldValue":"bounces","modelFieldValue":"gaBounces","ecGaFieldName":"bounces","metricField":true},{"ecGaFieldValue":"impressions","modelFieldValue":"gaImpressions","ecGaFieldName":"impressions","metricField":true},{"ecGaFieldValue":"adClicks","modelFieldValue":"gaClicks","ecGaFieldName":"ad Clicks","metricField":true},{"ecGaFieldValue":"adCost","modelFieldValue":"gaCost","ecGaFieldName":"ad Cost","metricField":true},{"ecGaFieldValue":"transactions","modelFieldValue":"gaPays","ecGaFieldName":"transactions","metricField":true},{"ecGaFieldValue":"transactionRevenue","modelFieldValue":"gaOrderAmount","ecGaFieldName":"Transaction Revenue","metricField":true},{"ecGaFieldValue":"quantityAddedToCart","modelFieldValue":"gaQuantityAddedToCart","ecGaFieldName":"quantityAddedToCart","metricField":true},{"ecGaFieldValue":"productAddsToCart","modelFieldValue":"gaCart","ecGaFieldName":"productAddsToCart","metricField":true},{"ecGaFieldValue":"pageviews","modelFieldValue":"gaPageviews","ecGaFieldName":"pageviews","metricField":true}]",
    "cpcMapping" : "{"cart":{"ecGaFieldValue":"goal1Completions","ecGaFieldName":"Goal 1 Completions"},"pays":{"ecGaFieldValue":"transactions","ecGaFieldName":"Transactions"},"orderAmount":{"ecGaFieldValue":"transactionRevenue","ecGaFieldName":"Transaction Revenue"},"clicks":{"ecGaFieldValue":"sessions","ecGaFieldName":"Sessions"}}",
    "currentUse" : 1,
    "filters" : "[{"filterKey":"sourceMedium","operation":"=@","filterValue":"ymdpa"}]",
    "id" : 11,
    "mapping" : "{"cart":{"ecGaFieldValue":"goal1Completions","ecGaFieldName":"Goal 1 Completions"},"pays":{"ecGaFieldValue":"transactions","ecGaFieldName":"Transactions"},"orderAmount":{"ecGaFieldValue":"transactionRevenue","ecGaFieldName":"Transaction Revenue"},"clicks":{"ecGaFieldValue":"sessions","ecGaFieldName":"Sessions"}}",
    "profileId" : 119054411,
    "timezone" : 8,
    "trackingId" : "UA-34410748-1"
    }, {
    "adwordsMapping" : "[{"ecGaFieldValue":"adwordsCustomerID","modelFieldValue":"customerId","ecGaFieldName":"adwordsCustomerID","metricField":false},{"ecGaFieldValue":"adwordsAdGroupID","modelFieldValue":"adSet","ecGaFieldName":"adwordsAdGroupID","metricField":false},{"ecGaFieldValue":"adwordsCreativeID","modelFieldValue":"adId","ecGaFieldName":"adwordsCreativeID","metricField":false},{"ecGaFieldValue":"adGroup","modelFieldValue":"adGroupName","ecGaFieldName":"adGroupName","metricField":false},{"ecGaFieldValue":"date","modelFieldValue":"date","ecGaFieldName":"date","metricField":false},{"ecGaFieldValue":"sessions","modelFieldValue":"gaSessions","ecGaFieldName":"sessions","metricField":true},{"ecGaFieldValue":"bounces","modelFieldValue":"gaBounces","ecGaFieldName":"bounces","metricField":true},{"ecGaFieldValue":"impressions","modelFieldValue":"gaImpressions","ecGaFieldName":"impressions","metricField":true},{"ecGaFieldValue":"adClicks","modelFieldValue":"gaClicks","ecGaFieldName":"ad Clicks","metricField":true},{"ecGaFieldValue":"adCost","modelFieldValue":"gaCost","ecGaFieldName":"ad Cost","metricField":true},{"ecGaFieldValue":"transactions","modelFieldValue":"gaPays","ecGaFieldName":"transactions","metricField":true},{"ecGaFieldValue":"transactionRevenue","modelFieldValue":"gaOrderAmount","ecGaFieldName":"Transaction Revenue","metricField":true},{"ecGaFieldValue":"quantityAddedToCart","modelFieldValue":"gaQuantityAddedToCart","ecGaFieldName":"quantityAddedToCart","metricField":true},{"ecGaFieldValue":"productAddsToCart","modelFieldValue":"gaCart","ecGaFieldName":"productAddsToCart","metricField":true},{"ecGaFieldValue":"pageviews","modelFieldValue":"gaPageviews","ecGaFieldName":"pageviews","metricField":true}]",
    "cpcMapping" : "{"cart":{"ecGaFieldValue":"goal1Completions","ecGaFieldName":"Goal 1 Completions"},"pays":{"ecGaFieldValue":"transactions","ecGaFieldName":"Transactions"},"orderAmount":{"ecGaFieldValue":"transactionRevenue","ecGaFieldName":"Transaction Revenue"},"clicks":{"ecGaFieldValue":"sessions","ecGaFieldName":"Sessions"}}",
    "currentUse" : 0,
    "filters" : "[{"filterKey":"sourceMedium","operation":"=@","filterValue":"ymfbad"}]",
    "id" : 12,
    "mapping" : "{"cart":{"ecGaFieldValue":"goal1Completions","ecGaFieldName":"Goal 1 Completions"},"pays":{"ecGaFieldValue":"transactions","ecGaFieldName":"Transactions"},"orderAmount":{"ecGaFieldValue":"transactionRevenue","ecGaFieldName":"Transaction Revenue"},"clicks":{"ecGaFieldValue":"sessions","ecGaFieldName":"Sessions"}}",
    "profileId" : 120135804,
    "timezone" : 8,
    "trackingId" : "UA-34410748-1"
    }
    ]
    },
    "gaFields" : [{
    "ecGaFieldName" : "Goal 1 Completions",
    "ecGaFieldValue" : "goal1Completions"
    }, {
    "ecGaFieldName" : "Goal 3 Completions",
    "ecGaFieldValue" : "goal3Completions"
    }, {
    "ecGaFieldName" : "Goal 4 Completions",
    "ecGaFieldValue" : "goal4Completions"
    }, {
    "ecGaFieldName" : "Goal 5 Completions",
    "ecGaFieldValue" : "goal5Completions"
    }, {
    "ecGaFieldName" : "Goal 6 Completions",
    "ecGaFieldValue" : "goal6Completions"
    }, {
    "ecGaFieldName" : "Goal 7 Completions",
    "ecGaFieldValue" : "goal7Completions"
    }, {
    "ecGaFieldName" : "Goal 8 Completions",
    "ecGaFieldValue" : "goal8Completions"
    }, {
    "ecGaFieldName" : "Sessions",
    "ecGaFieldValue" : "sessions"
    }, {
    "ecGaFieldName" : "Transaction Revenue",
    "ecGaFieldValue" : "transactionRevenue"
    }, {
    "ecGaFieldName" : "Transactions",
    "ecGaFieldValue" : "transactions"
    }
    ]
    },
    "errorCode" : "",
    "errorMsg" : "",
    "flag" : "success",
    "succeed" : true
    }

注释:
currentUse 当前绑定的视图
adwordsMapping、adwordsFilters: adword配置信息
mapping、filters: dpa配置信息
cpcMapping、cpcFilters: 拉新配置信息

  1. 参数绑定
    a. url:
    ga/gaParamsBinding
    b. 参数
    param:
    [{
    "profileId" : 115739336,
    "timezone" : 8,
    "trackingId" : "UA-71844696-1",
    "mapping" : {
    "cart" : {
    "ecGaFieldValue" : "goal1Completions",
    "ecGaFieldName" : "Goal 1 Completions"
    },
    "clicks" : {
    "ecGaFieldValue" : "sessions",
    "ecGaFieldName" : "Sessions"
    },
    "pays" : {
    "ecGaFieldValue" : "transactions",
    "ecGaFieldName" : "Transactions"
    },
    "orderAmount" : {
    "ecGaFieldValue" : "transactionRevenue",
    "ecGaFieldName" : "Transaction Revenue"
    }
    },
    "adwordsMapping" : [{
    "ecGaFieldValue" : "transactionRevenue",
    "modelFieldValue" : "gaOrderAmount",
    "ecGaFieldName" : "Transaction Revenue"
    }
    ]
    }
    ]

你可能感兴趣的:(GA参数绑定设置)