Google 标签管理器 REST API - 使用过滤器创建触发器会返回错误

问题描述 投票:0回答:0

我正在尝试使用谷歌标签管理器rest api 创建一个新的触发器并收到此错误:

无法解析触发数据 com.google.analytics.containertag.common.CtApiaryException:trigger.filter[0].parameter[1]:过滤器的第二个参数必须是字符串。

这是我的有效负载:

const body = {
                accountId: googleTagManagerAccountId,
                containerId: containerId,
                workspaceId: workspaceId,
                name: `Bla bla PageViews Disabled JS - ${domainUrl}`,
                type: 'pageview',
                tagFiringOption: 'somePageViews',
                filter: [
                    {
                        parameter: [
                            {
                                type: 'template',
                                value: '{{ Cheq Essentials Variable }}',
                                key: 'arg0',
                            },
                            {
                                type: 'boolean',
                                value: 'false',
                                key: 'arg1',
                            },
                        ],
                        type: 'contains',
                    },
                ],
            };

有人可以解释一下我的代码有什么问题吗?

谢谢

google-tag-manager
© www.soinside.com 2019 - 2024. All rights reserved.