Skip to main content
Solved

How to create a completed form success link to track conversions

  • January 26, 2023
  • 2 replies
  • 299 views

Forum|alt.badge.img+2

Please tell me what is wrong in my code. The completed form does not land the user on another page, a thank you page I want to use to track conversions.

 

<script async type="text/javascript" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=XhP43x"><script type="text/javascript"> type="text/javascript">
 KlaviyoSubscribe.attachToForms('#email_signup', {
   hide_form_on_success: true,
   success_url: "https://sites.google.com/view/wudi-shilajit-gummies/accueil/thank-you"
 });
</script>

Best answer by Brian Turcotte

Hi @Olivier2023 and welcome to the Community!

 

Klaviyo forms, by default, are not able to redirect to a URL, so may I ask you to provide a little more context about how you are attempting to customize a form, as well the desired outcome of your use case?

 

I understand that you want to use this to track conversions. Are you planning to do so via Google Analytics? If so, I’d first recommend that you check out our Help Center Article, How to Configure Google Analytics Goal Tracking for a Signup Form. You can track sign ups this way by attaching an event listener to the "klaviyoForms" event, then using specific GA tracking calls for each event type. Keep in mind that this code will need to be placed within the main theme file of your website.

 

Here are some other Community threads on this same topic, if you’re interested:

 

Thanks for using the Community!

- Brian

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • January 27, 2023

Hi @Olivier2023 and welcome to the Community!

 

Klaviyo forms, by default, are not able to redirect to a URL, so may I ask you to provide a little more context about how you are attempting to customize a form, as well the desired outcome of your use case?

 

I understand that you want to use this to track conversions. Are you planning to do so via Google Analytics? If so, I’d first recommend that you check out our Help Center Article, How to Configure Google Analytics Goal Tracking for a Signup Form. You can track sign ups this way by attaching an event listener to the "klaviyoForms" event, then using specific GA tracking calls for each event type. Keep in mind that this code will need to be placed within the main theme file of your website.

 

Here are some other Community threads on this same topic, if you’re interested:

 

Thanks for using the Community!

- Brian


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • January 27, 2023

Hi Brian, Thanks for your reply and welcome. I want to use the successfully submitted contact form in google ads. I want to create a conversion action for a successfully submitted contact form. The form is on this page: https://sites.google.com/view/wudi-shilajit-gummies/accueil I linked Klaviyo with the google ads account, but it did not create a follow up code for the conversion action