Solved

How to create a completed form success link to track conversions

  • 26 January 2023
  • 2 replies
  • 204 views

Badge +1

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>

icon

Best answer by Brian Turcotte 27 January 2023, 04:36

View original

2 replies

Userlevel 7
Badge +36

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

Badge +1

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

Reply