简体   繁体   English

Google跟踪代码管理器跟踪具有多个选项的表单

[英]Google Tag Manager Tracking a Form with Multiple Options

I am trying to set up conversion tracking within GTM for a form that gives the user multiple options from a drop-down menu. 我正在尝试在GTM内设置一种转化跟踪,该表单可为用户提供下拉菜单中的多个选项。

On click the user is given the following option: ABCD 单击时,将为用户提供以下选项:ABCD

Each option generates a new form (without the URL changing), the problem being that the successfully submit destination page is the same for each different form generated - /thank-you/. 每个选项都会生成一个新表单(不更改URL),问题在于成功生成的目标页面对于生成的每个不同表单都是相同的-/ thank-you /。

There are no unique identifiers on the /thank-you/ page. / thank-you /页面上没有唯一的标识符。 However, when an option is selected such as B a unique ID is generated on the page containing the form. 但是,当选择一个选项(例如B)时,将在包含表单的页面上生成唯一ID。

My only thoughts for a trigger were to have a tag fire when the URL was equal to /thank-you/ and an ID on the previous page was equal XXX. 我唯一想到的触发器是当URL等于/ thank-you /并且上一页的ID等于XXX时触发代码。

But as far as I know, this is not possible. 但是据我所知,这是不可能的。

I have an alternate solution: use events, goal and GA segments (type - sequences). 我有一个替代解决方案:使用事件,目标和GA细分(类型-序列)。

Just create 4 events (A, B, C, D) and goal for /thank-you/ page. 只需为/thank-you/页面创建4个事件(A,B,C,D)和目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM