how to track form submission
I'm new in analytics, I have to find out the how many forms are completed so I created a rule in TMS but it's not working for testing I added alert into the custom code but again it not shown on the form submit
I'm new in analytics, I have to find out the how many forms are completed so I created a rule in TMS but it's not working for testing I added alert into the custom code but again it not shown on the form submit
Hi Pradeep,
There is no "one-size-fits-all" solution for this. Your solution is unique to how your site is setup.
For example, It depends on, does your form have a unique URL the visitor has to go to? Or is it some button you click and you get an overlay on a page? Is it embedded as an iframe on your site?
However, you can refer to the below common methods
Method 1: If the event as to be triggered when a submit button is clicked,
<button onclick="myFunction()">Click me</button>
<script>
function myFunction()
{
s.events="eventN" // where eventN can be any counter event, which increments by 1 when ever submit button is clicked.
s.tl();
}
</script>
Here s.tl() function is mandatory so that event is tracked, refer to this link to understand the use of
s.tl() function
Since, you are facing a trouble in tracking the triggers, please check whether s.tl function is added.
Method 2: If there is a unique url, where the visitor will reach after submitting a form,
For instance like visitor reach to a page url with "thank you/successfully submitted the form" in url path or dom element has a value like above, you can fire a adobe analytics trigger to capture no of times the form is successfully submitted
Hope this helps
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.