Skip to main content
Contributor I
January 26, 2023
Solved

How to create a completed form success link to track conversions

  • January 26, 2023
  • 2 replies
  • 392 views

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>

    This topic has been closed for replies.
    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

    2 replies

    Brian Turcotte
    Klaviyo Alum
    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

    Contributor I
    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