Google Analytics(分析)网站搜索未显示搜索字词结果

时间:2020-10-15 04:59:57

标签: html forms google-analytics

我一直在尝试在Google Analytics(分析)中为我的网站启用网站搜索,但是我不确定自己做错了什么。下面的代码是我的搜索栏,我使用的是GET方法,因此搜索后的网址应类似于此www.test.com/search_results.php?q=apple

我正在使用的查询参数是“ q”。如果我转到Google Analytics(分析)下的搜索字词页面,则没有单个结果或搜索字词。

<section class="search-bar">
   <div class="search-container">
      <form action="search_results.php" method="GET">
         <input type="text" placeholder="Enter product name" name="q">
         <button type="submit" value="submit">Search</button>
      </form>
   </div>
</section>

enter image description here

1 个答案:

答案 0 :(得分:0)

如果将匹配结果发送到Google Analytics(分析),并且您没有任何过滤器可能会阻止视图中的匹配结果,则说明Google Analytics(分析)中的配置正确,因此请尝试明天再检查一次。