CRMint - 将受众从 BigQuery 导入到 Google Analytics

CRMint - Import audiences from BigQuery to Google Analytics

我不确定将受众群体从 BigQuery 导入到 Google Analytics 的最简单方法是什么。我有一个名为 dataset_a.georgia 的 BigQuery table,其中包含 2 列 fullVisitorId (string)predictions (string).

基于CRMint documentation, there is a worker called GAAudiencesUpdater which is doing what I am looking for.

但是,必需的参数之一是 GA 受众 JSON 模板。我很难理解我应该如何写这个 JSON 因为 basic JSON example 很长而且很难理解。我只有 2 列要导入,fullVisitorId 已经是 Google Analytics 中的默认变量,而我刚刚创建了一个名为 predictions 的自定义维度,索引为 183user范围。

我与一位对 CRMint 有一定经验的高级开发人员交谈,他建议我不要使用 GAAudiencesUpdater,因为编写 GA 受众 JSON 模板非常困难。他建议我将我的 BigQuery 数据导入 CSV,将该 CSV 存储到 Google Cloud Storage,然后将该 CSV 导入 Google Analytics,然后将工作人员导入 GADataImporter

有什么建议吗?

你可以在这里找到一个例子

GAAudiencesUpdater

Here's the basic Google Analytics JSON template example:

{
  "audienceType": "STATE_BASED",
  "linkedAdAccounts": [
    {
      "linkedAccountId": "{% AW_ACCOUNT_ID %}",
      "type": "ADWORDS_LINKS"
    }
  ],
  "linkedViews": [
    {% GA_VIEW_ID %}
  ],
  "name": "CRMint Tier GA %(tier)i",
  "stateBasedAudienceDefinition": {
    "includeConditions": {
      "daysToLookBack": 7,
      "segment": "users::condition::ga:dimension{% CD_TIER %}=@%(code)s",
      "isSmartList": false,
      "membershipDurationDays": %(duration)i
    },
    "excludeConditions": {
      "segment": "users::condition::ga:dimension{% CD_TIER %}==dur93j#%(tier)ihg@2d6",
      "exclusionDuration": "TEMPORARY"
    }
  }
}

他们更新了版本。您现在不必导入 JSON。