Analytics
4.2K members online now
4.2K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Tracking form submission

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi..

I need a help to track number contact submission in my website.

My code for submit is ;

 <button type="submit" class="btn"  onClick="sendmail(event);">Send Now</button>

Where should add these event in above line?

   ”ga(‘send’, ‘event’, ‘submit form’, ‘click’, , '',)”

 

Thanks..

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Suvantech K
May 2017

Tracking form submission

Participant ✭ ☆ ☆
# 5
Participant ✭ ☆ ☆

Hi Suvantech,

Something like this will work for you:

 

 <button type="submit" class="btn"  onClick="ga('send', 'event', 'Email Form', 'Form Submit', ''); sendmail(event);">Send Now</button>

 

I hope this helps.

Regards,

Güney

View solution in original post

Tracking form submission

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

Re: Tracking form submission

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thank you for your reply, unfortunately I am not an expert in coding Smiley Sad Any idea to put event in "onclick" ?

Tracking form submission

A T
Participant ✭ ✭ ✭
# 4
A T
Participant ✭ ✭ ✭

ga send event will go in to function definition of : sendmail(event);

Marked as Best Answer.
Solution
Accepted by topic author Suvantech K
May 2017

Tracking form submission

Participant ✭ ☆ ☆
# 5
Participant ✭ ☆ ☆

Hi Suvantech,

Something like this will work for you:

 

 <button type="submit" class="btn"  onClick="ga('send', 'event', 'Email Form', 'Form Submit', ''); sendmail(event);">Send Now</button>

 

I hope this helps.

Regards,

Güney

Re: Tracking form submission

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Sorry. Smiley Sad mail is not working. Without that mail will work.

Re: Tracking form submission

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

Now its working Smiley Happy Thank you Smiley Happy

Tracking form submission

Participant ✭ ☆ ☆
# 8
Participant ✭ ☆ ☆

You can remove 'sendmail(event)', I thought it is a function that you are using for something else.

Re: Tracking form submission

Visitor ✭ ✭ ✭
# 9
Visitor ✭ ✭ ✭

Yah that is a function. I inserted same code what you gave. Its working now.

Tracking form submission

Participant ✭ ☆ ☆
# 10
Participant ✭ ☆ ☆

I'm happy that it is solved!