AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4K members online now
4K 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

Sending a conversion value or event value from a form on an Unbounce landing page

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi team,

 

I need help - can you let me know if it is possible to send the value from the form on an Unbounce landing page to Google Analytics as the "Event Value" or "Goal Conversion Value" (see screenshot: http://prntscr.com/f95kcw).

 

We currently have both a Goal and an Event set-up to track the submission of the form. 

 

Thanks!

 

 

Sending a conversion value or event value from a form on an Unbounce landing page

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆

Hi Matt,

 

You can set the event value (integer value type) as the last parameter of your google analytics event.

Example: ga('send', 'event', 'Category', 'Action', 'Label', 15); // Here 15 is your event value and please be sure that the value that you are sending is an integer value.

 

I hope my answer helps you.

Regards,

Güney

Sending a conversion value or event value from a form on an Unbounce landing page

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks so much for your response - i think I'm now half way there. Essentially is there a way for the 'integer value type' to change as each event is recorded based on the $ amount that is entered in the form (shown here http://prntscr.com/f95kcw)? 

Thanks!

Sending a conversion value or event value from a form on an Unbounce landing page

Participant ✭ ✭ ☆
# 4
Participant ✭ ✭ ☆

Hi Matt,

 

If user enters only the amount in integer(you can force them to do it by coding), it is very easy to do it.

I dont know which technologies you are using on your website but I will give you a simple example with JavaScript:

Let's say your input text field accepts only numbers(you can use this example: http://stackoverflow.com/questions/13952686/how-to-make-html-input-tag-only-accept-numerical-values) and it has an unique id donateInput. Its HTML code will look something like this

<input type="text" id="donateInput">

 

Then you should write a function that gets the value of this html element and converts it to integer and send it as your event value: 

function donationEvent(){

  var donationValue = parseInt( document.getElementById("myText").value );

  ga('send', 'event', 'category', 'action', 'label', donationValue);

}

 

Note: This is just to give you an idea, it is possible to write it in a better way.

 

I hope this helps.

Regards