Skip to main content
Answered

Merge event_id into redirect link.

  • Aug 31, 2022 11:03 PM UTC
  • 3 replies
  • 185 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. 

Best answer by mathio-tf

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.

View original

3 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Sep 1, 2022 2:11 PM UTC

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. 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Answer
  • Sep 1, 2022 2:25 PM UTC

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.


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Sep 6, 2022 6:21 PM UTC

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