I have a form in a classic version with a submit button
我有一个带有提交按钮的经典版本的表单
<form action="" name="frm" mathed="">
<input type="submit" value="submit">
</input>
I have enabled a jquery command in order to track in adobe anlytics site that the submission of form was succesfull and have some values with this
我已经启用了一个jquery命令,以便在adobe anlytics网站中跟踪表单的提交是成功的并且具有一些值
$("#frm").submit(function(){
s.linkTrackVars="pageName";
s.pageName = 'test_form';
s.tl(true,'o','link', null,'navigate');
});
How can I confirm in omniture (adobe analytics) side that the submission was successful and se the results?
如何在omniture(adobe analytics)方面确认提交成功并获得结果?
1 个解决方案
#1
2
Firstly, you mention wanting to track that the form has been successfully submitted. I'm not sure how you define "successful" but commonly that means that the form passed validation (e.g. all form fields filled out, proper format, etc.). However, you currently have the Adobe Analytics (AA) tracking implemented to pop on the submit event, which may not necessarily mean the form has actually passed whatever validation you may have in place.
首先,您提到要跟踪表单是否已成功提交。我不确定你如何定义“成功”,但通常这意味着表单通过验证(例如填写的所有表单字段,正确的格式等)。但是,您目前已实施Adobe Analytics(AA)跟踪以在提交事件上弹出,这可能并不一定意味着表单实际上已通过您可能具有的任何验证。
Secondly, the only AA variable you are setting is pageName
, which is one of the few AA vars you should usually never set (override) on s.tl()
calls. Generally speaking, pageName
is set for a page view which is done with an s.t()
call. Then, events/actions that happen on the page are tracked with an s.tl()
call, and AA code already automatically includes the current page's pageName
value in that request. Within the reports, AA then associates the activity with that page name, but disregards it as far as an actual page view happening.
其次,您设置的唯一AA变量是pageName,它是您在s.tl()调用中通常不应设置(覆盖)的少数AA变量之一。一般来说,pageName是为页面视图设置的,这是通过s.t()调用完成的。然后,使用s.tl()调用跟踪页面上发生的事件/操作,并且AA代码已经自动包含该请求中当前页面的pageName值。在报告中,AA然后将活动与该页面名称相关联,但是在实际页面视图发生时忽略它。
Now, it may be that you want to track successful form submissions as a separate page view, in which case, you should indeed set pageName
with a new (unique) value, but you don't need to "register" it in linkTrackVars
and you should be using s.t()
not s.tl()
to trigger it. Ideally though, you should place it on a real "thank you" / "confirmation" page (though it may be that you don't actually have that).
现在,您可能希望将成功的表单提交跟踪为单独的页面视图,在这种情况下,您确实应该使用新的(唯一)值设置pageName,但是您不需要在linkTrackVars中“注册”它你应该使用st()而不是s.tl()来触发它。理想情况下,你应该把它放在一个真正的“谢谢”/“确认”页面上(尽管可能你实际上没有那个)。
So what should you pop then? If you go the "track it as a separate page view (s.t()
) call with a unique pageName
value, for your purposes that may be enough. You can look at your pages report and see your value show up and how many times a visitor hit it.
那么你应该怎么样?如果您将“跟踪它作为单独的页面视图(st())调用具有唯一的pageName值,为了您的目的可能就足够了。您可以查看您的页面报告并查看您的价值显示以及显示的次数访客打了它。
But in general, the more common method of form tracking involves at least one eVar
and two events
. This is the common basic form tracking setup.
但总的来说,更常见的表单跟踪方法涉及至少一个eVar和两个事件。这是常见的基本表单跟踪设置。
I use the following AA var/events in this example
我在这个例子中使用了以下AA var / events
eVar1
- This signifies a name for the form. Expiration should be set to expire on event2.
eVar1-这表示表单的名称。应将expiration设置为在event2上过期。
event1
- This signifies form view happened
event1 - 这表示表单视图已发生
event2
- This signifies successful form complete happened.
event2 - 这表示表单已成功完成。
On form view
在表单视图上
On form view, your on-page code should look something like this in principle:
在表单视图中,您的页面代码原则上应该是这样的:
<script src='s_code.js'></script>
<script>
s.pageName="unique page name"; // leave blank if you want AA to default to using URL in pages report
s.eVar1="unique descriptive form name here";
s.events="event1";
s.t();
</script>
On successful form submit
成功提交表格
Ideally, you should have a "thank you" / confirmation page that the visitor is redirected to upon successful form completion, and on that page, you should have this in principle:
理想情况下,你应该有一个访问者是成功的形式,完成后重新定向到一个“谢谢” /确认页面,并在该网页上,你应该有这样的原则:
<script src='s_code.js'></script>
<script>
s.pageName="unique page name"; // leave blank if you want AA to default to using URL in pages report
s.events="event2";
s.t();
</script>
If you really want to do it your method (attaching to submit event), it'd look like this (p.s.- according to your posted code, your form doesn't have an id='frm'
so the selector won't actually work, but I'm only addressing the actual AA code here):
如果你真的想要这样做你的方法(附加到提交事件),它看起来像这样(ps-根据你发布的代码,你的表单没有id ='frm'所以选择器实际上不会工作,但我只是在这里解决实际的AA代码):
$("#frm").submit(function(){
s.linkTrackEvents="event2";
s.linkTrackVars="events";
s.events="event2";
s.tl(true,'o','form submit');
});
Or, if you want to track it as a separate page view but triggered on submit (note: this will also record any other vars you already have set from initial page view, so you may need to do something about that (e.g. set different values for them too, or blank them out, etc..) depending on the intended purpose of any other vars you have):
或者,如果您想将其作为单独的页面视图进行跟踪,但在提交时触发(注意:这也将记录您从初始页面视图中设置的任何其他变量,因此您可能需要对此进行一些操作(例如,设置不同的值)也适用于他们,或者将其删除等等。)取决于您拥有的任何其他变量的预期目的):
$("#frm").submit(function(){
s.pageName="unique page name"; // leave blank if you want AA to default to using URL in pages report
s.events="event2";
s.t();
});
But as I mentioned above.. this may or may not accurately signify that a visitor actually successfully completed the form..
但正如我上面提到的......这可能会或可能不会准确地表明访问者确实成功完成了表格。
What report to look at
要看什么报告
Okay so with the example above, you can then look at eVar1
report and select event1
and event2
as your metrics. This will show you how many people viewed and then went on to complete the form. If you have more than one form, you can use a different value in eVar1
and the report will show views/completes for each form.
好的,通过上面的示例,您可以查看eVar1报告并选择event1和event2作为指标。这将显示有多少人查看,然后继续完成表单。如果您有多个表单,则可以在eVar1中使用不同的值,报表将显示每个表单的视图/完成情况。
#1
2
Firstly, you mention wanting to track that the form has been successfully submitted. I'm not sure how you define "successful" but commonly that means that the form passed validation (e.g. all form fields filled out, proper format, etc.). However, you currently have the Adobe Analytics (AA) tracking implemented to pop on the submit event, which may not necessarily mean the form has actually passed whatever validation you may have in place.
首先,您提到要跟踪表单是否已成功提交。我不确定你如何定义“成功”,但通常这意味着表单通过验证(例如填写的所有表单字段,正确的格式等)。但是,您目前已实施Adobe Analytics(AA)跟踪以在提交事件上弹出,这可能并不一定意味着表单实际上已通过您可能具有的任何验证。
Secondly, the only AA variable you are setting is pageName
, which is one of the few AA vars you should usually never set (override) on s.tl()
calls. Generally speaking, pageName
is set for a page view which is done with an s.t()
call. Then, events/actions that happen on the page are tracked with an s.tl()
call, and AA code already automatically includes the current page's pageName
value in that request. Within the reports, AA then associates the activity with that page name, but disregards it as far as an actual page view happening.
其次,您设置的唯一AA变量是pageName,它是您在s.tl()调用中通常不应设置(覆盖)的少数AA变量之一。一般来说,pageName是为页面视图设置的,这是通过s.t()调用完成的。然后,使用s.tl()调用跟踪页面上发生的事件/操作,并且AA代码已经自动包含该请求中当前页面的pageName值。在报告中,AA然后将活动与该页面名称相关联,但是在实际页面视图发生时忽略它。
Now, it may be that you want to track successful form submissions as a separate page view, in which case, you should indeed set pageName
with a new (unique) value, but you don't need to "register" it in linkTrackVars
and you should be using s.t()
not s.tl()
to trigger it. Ideally though, you should place it on a real "thank you" / "confirmation" page (though it may be that you don't actually have that).
现在,您可能希望将成功的表单提交跟踪为单独的页面视图,在这种情况下,您确实应该使用新的(唯一)值设置pageName,但是您不需要在linkTrackVars中“注册”它你应该使用st()而不是s.tl()来触发它。理想情况下,你应该把它放在一个真正的“谢谢”/“确认”页面上(尽管可能你实际上没有那个)。
So what should you pop then? If you go the "track it as a separate page view (s.t()
) call with a unique pageName
value, for your purposes that may be enough. You can look at your pages report and see your value show up and how many times a visitor hit it.
那么你应该怎么样?如果您将“跟踪它作为单独的页面视图(st())调用具有唯一的pageName值,为了您的目的可能就足够了。您可以查看您的页面报告并查看您的价值显示以及显示的次数访客打了它。
But in general, the more common method of form tracking involves at least one eVar
and two events
. This is the common basic form tracking setup.
但总的来说,更常见的表单跟踪方法涉及至少一个eVar和两个事件。这是常见的基本表单跟踪设置。
I use the following AA var/events in this example
我在这个例子中使用了以下AA var / events
eVar1
- This signifies a name for the form. Expiration should be set to expire on event2.
eVar1-这表示表单的名称。应将expiration设置为在event2上过期。
event1
- This signifies form view happened
event1 - 这表示表单视图已发生
event2
- This signifies successful form complete happened.
event2 - 这表示表单已成功完成。
On form view
在表单视图上
On form view, your on-page code should look something like this in principle:
在表单视图中,您的页面代码原则上应该是这样的:
<script src='s_code.js'></script>
<script>
s.pageName="unique page name"; // leave blank if you want AA to default to using URL in pages report
s.eVar1="unique descriptive form name here";
s.events="event1";
s.t();
</script>
On successful form submit
成功提交表格
Ideally, you should have a "thank you" / confirmation page that the visitor is redirected to upon successful form completion, and on that page, you should have this in principle:
理想情况下,你应该有一个访问者是成功的形式,完成后重新定向到一个“谢谢” /确认页面,并在该网页上,你应该有这样的原则:
<script src='s_code.js'></script>
<script>
s.pageName="unique page name"; // leave blank if you want AA to default to using URL in pages report
s.events="event2";
s.t();
</script>
If you really want to do it your method (attaching to submit event), it'd look like this (p.s.- according to your posted code, your form doesn't have an id='frm'
so the selector won't actually work, but I'm only addressing the actual AA code here):
如果你真的想要这样做你的方法(附加到提交事件),它看起来像这样(ps-根据你发布的代码,你的表单没有id ='frm'所以选择器实际上不会工作,但我只是在这里解决实际的AA代码):
$("#frm").submit(function(){
s.linkTrackEvents="event2";
s.linkTrackVars="events";
s.events="event2";
s.tl(true,'o','form submit');
});
Or, if you want to track it as a separate page view but triggered on submit (note: this will also record any other vars you already have set from initial page view, so you may need to do something about that (e.g. set different values for them too, or blank them out, etc..) depending on the intended purpose of any other vars you have):
或者,如果您想将其作为单独的页面视图进行跟踪,但在提交时触发(注意:这也将记录您从初始页面视图中设置的任何其他变量,因此您可能需要对此进行一些操作(例如,设置不同的值)也适用于他们,或者将其删除等等。)取决于您拥有的任何其他变量的预期目的):
$("#frm").submit(function(){
s.pageName="unique page name"; // leave blank if you want AA to default to using URL in pages report
s.events="event2";
s.t();
});
But as I mentioned above.. this may or may not accurately signify that a visitor actually successfully completed the form..
但正如我上面提到的......这可能会或可能不会准确地表明访问者确实成功完成了表格。
What report to look at
要看什么报告
Okay so with the example above, you can then look at eVar1
report and select event1
and event2
as your metrics. This will show you how many people viewed and then went on to complete the form. If you have more than one form, you can use a different value in eVar1
and the report will show views/completes for each form.
好的,通过上面的示例,您可以查看eVar1报告并选择event1和event2作为指标。这将显示有多少人查看,然后继续完成表单。如果您有多个表单,则可以在eVar1中使用不同的值,报表将显示每个表单的视图/完成情况。