Passing 1st page variant value to 2nd page form


I’m using a lightbox on my landing pages to show a second page, which just contains my form. There’s only one variant of the form; there are currently two variants of my landing page. I want to get the landing page variant (A or B) to show up in the lead data I collect in the form on the second page. Right now the lead data just shows the variant of the second page, which isn’t useful because I only have one form, and all the values are the same.


3 replies

Hey Kenji,

It looks like we’re currently diving into your issue with a support ticket, but in case anyone else is wondering, what we’re suggesting is to add lightbox forms to each of your variants using the following custom script: https://gist.github.com/jmso01/ee58344410873e6c7406. Once implemented, you will be able to track the variant ID when lead data is submitted from your lightbox forms. 

Alternatively, we suggested that you can track your variants using Google Analytics. But if you’re looking for something in-app, the option above would be the best bet.

Userlevel 7


Hey Kenji,

It looks like we’re currently diving into your issue with a support ticket, but in case anyone else is wondering, what we’re suggesting is to add lightbox forms to each of your variants using the following custom script: https://gist.github.com/ johnnyopao /ee58344410873e6c7406. Once implemented, you will be able to track the variant ID when lead data is submitted from your lightbox forms. 

Alternatively, we suggested that you can track your variants using Google Analytics. But if you’re looking for something in-app, the option above would be the best bet.

Badge

Resurfacing an old question here, but I have a similar question, but the solution offered here won’t help me.

Instead of sending a click to a lightbox, I’m sending it to a completely different page. In a case like this, how can I collect the variant ID of the initial landing page visited?

Reply