R:Google Analytics MCF - 按产品过滤

R: Google Analytics MCF - Filtering by products

我需要按我们销售的两个基本产品类别(我们称它们为 type1 和 type2)过滤 Google Analytics MCF 报告。

我当前通过 R 包 RGA 调用的 API 是:

get_mcf(profileId = 'xxxxx',
        start.date = '2016-10-01',
        end.date = '2016-12-31',
        metrics = 'mcf:totalConversions, mcf:totalConversionValue',
        dimensions = 'mcf:basicChannelGroupingPath',
        samplingLevel = 'HIGHER_PRECISION',
        max.results = 10000,
        token = 'xxxxx')

有了这个,我可以获得所有产品的 MCF 路径。 我现在需要做的是添加过滤器或细分,这将允许我为产品名称添加过滤器,比如

ga:productName=@type1

我该怎么做?

谢谢

可用于 MCF 的维度和指标数量有限 api。据我所知,没有 mfc:productName 维度

您可以在此处 Dimensions & Metrics Reference

找到可用于此 api 的维度和指标的完整列表