Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Events Google事件跟踪多个表单_Events_Analytics_Tracking - Fatal编程技术网

Events Google事件跟踪多个表单

Events Google事件跟踪多个表单,events,analytics,tracking,Events,Analytics,Tracking,我有几个不同的联系表格(都使用联系表格7),并希望跟踪每个表格的提交操作。在GA跟踪代码中,我添加了以下内容: ga('send', 'event', 'Forms', 'Submit', 'PFStandard'); ga('send', 'event', 'Forms', 'Submit', 'PFAdvanced'); ga('send', 'event', 'Forms', 'Submit', 'PFTrainer'); ga('send', 'event', 'Forms', 'Sub

我有几个不同的联系表格(都使用联系表格7),并希望跟踪每个表格的提交操作。在GA跟踪代码中,我添加了以下内容:

ga('send', 'event', 'Forms', 'Submit', 'PFStandard');
ga('send', 'event', 'Forms', 'Submit', 'PFAdvanced');
ga('send', 'event', 'Forms', 'Submit', 'PFTrainer');
ga('send', 'event', 'Forms', 'Submit', 'SnowcatBasic');
ga('send', 'event', 'Forms', 'Submit', 'SnowcatEnhanced');
ga('send', 'event', 'Forms', 'Submit', 'WinterSurvival');
ga('send', 'event', 'Forms', 'Submit', 'GeneralContact');
我还将代码片段添加到各个联系人表单中。例如,在冬季生存的附加设置中,我添加了:

on_sent_ok: "ga('send', 'event', 'Forms', 'Submit', 'WinterSurvival');"
我以为标签只会跟踪该表单,但它会跟踪每个表单提交7次。。。我该怎么办