Google analytics 没有自定义维度/矩阵的Google Analytics AMP虚拟页面视图

Google analytics 没有自定义维度/矩阵的Google Analytics AMP虚拟页面视图,google-analytics,google-tag-manager,amp-html,Google Analytics,Google Tag Manager,Amp Html,我是AMP分析方面的新手,当用户单击箭头图标时,我想在AMP转盘上创建虚拟页面视图,而不使用自定义矩阵/维度。无论如何,我在页面上构建了这段代码,因为新的GTM现在不支持AMP上的预览模式 <amp-analytics type="gtag" data-credentials="include"> <script type="application/json"> {

我是AMP分析方面的新手,当用户单击箭头图标时,我想在AMP转盘上创建虚拟页面视图,而不使用自定义矩阵/维度。无论如何,我在页面上构建了这段代码,因为新的GTM现在不支持AMP上的预览模式

    <amp-analytics type="gtag" data-credentials="include">
    <script type="application/json">
        {
        "vars": {
            "account": "UA-xxxxxxxxx-1",
            "config": {
                "UA-xxxxxxxx-1": {"groups":"default"}
            }
        },
     "triggers": {
         "slide1": {
             "selector": "#slide1",
             "on": "visible"/"click,
             "request": "pageview",
             "vars": {
                 "documentLocation": "slide2test",
                 "title": "title2test"
             }
         },
         "slide2":{
            "selector": "#slide2",
            "on": "visible"/"click,
            "request": "pageview",
            "vars": {
                "documentLocation": "slide2test2",
                "title": "title2test2"
            }
        },
        "slide3":{
            "selector": "#slide3",
            "on": "visible"/"click,
            "request": "pageview",
            "vars": {
                "documentLocation": "slide2test3",
                "title": "title2test3"
            }
        }
     }
 }
    </script>
</amp-analytics>

    <h1 id="amptest" style="text-align:center">Virtual Page Test</h1>
        <amp-carousel width="400" height="300" layout="responsive" type="slides" role="region" aria-label="type='slides' carousel">
            <amp-img id="slide1" src="/images/t.png" width="400" height="300" layout="responsive" alt="a sample image"></amp-img>
            <amp-img id="slide2" src="/images/p.png" width="400" height="300" layout="responsive" alt="another sample image"></amp-img>
            <amp-img id="slide3" src="/images/b.png" width="400" height="300" layout="responsive" alt="and another sample image"></amp-img>
        </amp-carousel>

{
“vars”:{
“账户”:“UA-xxxxxxxxx-1”,
“配置”:{
“UA-xxxxxxxx-1”:{“组”:“默认值”}
}
},
“触发器”:{
“幻灯片1”:{
“选择器”:“#滑块1”,
“打开”:“可见”/“单击,
“请求”:“页面视图”,
“vars”:{
“文档位置”:“slide2test”,
“标题”:“标题2测试”
}
},
“幻灯片2”:{
“选择器”:“#滑块2”,
“打开”:“可见”/“单击,
“请求”:“页面视图”,
“vars”:{
“文档位置”:“slide2test2”,
“标题”:“标题2测试2”
}
},
“幻灯片3”:{
“选择器”:“#滑块3”,
“打开”:“可见”/“单击,
“请求”:“页面视图”,
“vars”:{
“文档位置”:“slide2test3”,
“标题”:“标题2测试3”
}
}
}
}
虚拟页面测试
当我访问该网站时,Google Analytics Realtime运行良好,但是VAR/VirtualPage没有出现,是否有人已经解决了这个问题? 提前谢谢