Answered

Merge event_id into redirect link.

  • 1 September 2022
  • 3 replies
  • 75 views

We are using the api and getting a payload whenever a user finishes taking the quiz which is awesome, and inside that payload there is an “event_id” which is awesome! Because if a user fails to enter their name, but makes a purchase after the quiz we can tie their quiz answers to their event_id! 

ONE PROBLEM!! We need to redirect the user to our shop after they finish the quiz, so in the final step we have a redirect which looks something like. 

https://n8n.oursite.com/webhook/getCartUrl_v2?email=@{enter your email}&eventId=@??????

QUESTION - How do you merge the event_id into the redirect link? This is meant to catch quiz answers for the many people who change their email address at checkout breaking the truthiness of email.  

URGENT! - This is a dealbreaker if we cannot find a way to connect these redirects to quiz answers then we will have to find another option. 

icon

Best answer by mathio 1 September 2022, 16:25

View original

3 replies

Userlevel 7
Badge +5

Hi @noteworthy I don’t believe it is possible to add the event ID into the webhook link, but @mathio or @picsoung may or may not know some workarounds or other ideas. 

Userlevel 7
Badge +5

Would it be sufficient to use response ID? If yes, you can embed your typeform and do the redirect in onSubmit callback where you receive response ID as a parameter.

Userlevel 7
Badge +5

Hi @noteworthy Were you able to give Mathio’s suggestion a try? Let us know how it went!

Reply