Use LeadQuizzes (Lead Tracking) with SegMetrics
SegMetrics allows you to track leads acquired through LeadQuizzes, by simply redirecting people who take the quiz to a thank you page on your site.
Most of the time SegMetrics will track the LeadQuizzes information automatically when users input their email address, but if you're having issues due to embedded quzzes, the following can help.
Get the SegMetrics Tracking Code
- In SegMetrics, go to your Site Setup page from the gear in the top menu, and copy the pixel code.
- If you haven't configured your Tracking Code previously, check out the Installing the Tracking Pixel instructions to set up your site correctly.
- Create a thank you page on your site to send people to who complete the LeadQuiz
Set up the LeadQuiz
In order to send lead data to your redirect page, you'll want to Use a Custom Results / Thank You Page for your quiz
- In LeadQuizzes, click on the quiz you want to track
- Click on Build to open the page Builder
- Scroll down to your Results section, and either create a new URL Redirect or edit the existing ones
- Enter the URL of your thank you page that you made above
- Click the toggle to "Append form data to redirect URL"
- Click Save to save your changes
The following is an example of a URL containing booking confirmation data that is sent to the redirect page:
https://example.com/thank-you?assigned_to=awesome&event_type_uuid=AAAAABBBBCCCCC&event_type_name=Awesome%20Sauce&event_start_time=2020-06-26T15%3A00%3A00%2B10%3A00&event_end_time=2020-06-26T15%3A30%3A00%2B10%3A00&invitee_uuid=BBBBBBBBBBBB&invitee_full_name=Luke&email-address-test=test%40gmail.com
Configure the Thank You Page
Finally, we want to set up your thank you page so that it will pass that email address back into SegMetrics.
On your landing page, you'll want to add the following code, in the footer:
<script>setTimeout(function(){ _segq.push(['identify', SegMet.queryVal('email-address-lead')]); }, 1000);</script>