Google analytics 如何在Google Analytics和/或Google Tag Manager中跟踪本地存储值

Google analytics 如何在Google Analytics和/或Google Tag Manager中跟踪本地存储值,google-analytics,google-analytics-api,google-tag-manager,Google Analytics,Google Analytics Api,Google Tag Manager,我有一个网站,根据用户选择的下拉列表在每个页面上显示不同的内容。我将下拉列表的值存储在localStorage中,因此他们不需要在每个页面上进行新的选择 如何在Google Tag Manager中设置标记以标识存储在localStorage中的值 一旦我能够跟踪该值,我希望能够过滤GA中的数据 那么,如何根据localStorage值查看页面视图呢?例如,有多少人选择了选项1进入了第X页

我有一个网站,根据用户选择的下拉列表在每个页面上显示不同的内容。我将下拉列表的值存储在localStorage中,因此他们不需要在每个页面上进行新的选择

如何在Google Tag Manager中设置标记以标识存储在localStorage中的值

一旦我能够跟踪该值,我希望能够过滤GA中的数据

那么,如何根据localStorage值查看页面视图呢?例如,有多少人选择了选项1进入了第X页