Zigpoll
  • What is Zigpoll
  • Accounts
    • General Settings
    • Display Settings
    • Visibility Settings
    • Targeting Settings
    • Language Settings
    • Embed Code
    • Monthly Requests
    • Surveys
    • Join Existing Account
  • Surveys
    • General Settings
    • Display Settings
    • Visibility Settings
    • Targeting Settings
    • Language Settings
    • Management Options
    • Slides
    • Survey Preview
    • Import
  • Slides
    • Types of Slides
    • Slide Logic
    • Template Variables
  • Embed
    • Participant Metadata
    • Survey Metadata
    • Template Variables
  • Participants
  • Subscription Plans
    • How we calculate responses
  • Billing
  • Notifications
  • Javascript API
  • Shopify App
    • Log In
    • Shopify Flow
  • Affiliate Program
  • Wordpress
  • Public Link
  • Integrations
    • Klaviyo
    • Mailchimp
    • GetResponse
    • Omnisend
    • Gorgias
    • ActiveCampaign
    • Google Analytics
      • Slack
    • Shopify
    • Google Sheets
  • Tutorials
    • Adding Team Members
Powered by GitBook
On this page
  1. Embed

Participant Metadata

Get the most out of your implementation by tracking participant metadata.

PreviousEmbedNextSurvey Metadata

Last updated 3 years ago

In the next section you can learn more about . In short, Participants allow you to keep track of how individuals have responded to your polls. Participants are automatically tracked based on their session with the basic embed code, but you can save extra data to the participant by adding the following code below the embed code:

    <script type="text/javascript">
      window.Zigpoll.user = {
        handle: USER_HANDLE,
        id: USER_ID,
        metadata: {
          first_name: USER_FIRST_NAME,
          last_name: USER_LAST_NAME,
          email: USER_EMAIL
        }
      };
    </script>

The additional fields you can explore are the following:

  • Handle <String>

  • Id <String>

  • Metadata <Object>

Handle

Handles are intended to be an easy way to view your participants list. For example you might want to list your participants by their first and last name followed by their email address.

Id

Id's are unique identifiers for your participants. If you do not supply an ID a unique ID will be provided for you, but it will refresh at the end of each session. This means that if a user clears their cache, they will be re-created with a new id unless you explicitly pass one in. You will likely want to replace this with the user id value that you use within your particular database.

Metadata

Metadata allows you to save any additional information about a Participant that you like. To add more data, just add a key and a value to the metadata object.

if you need help implementing participant tracking. For paid plans we offer full support.

Participants
Contact us