How To: Integrate Weglot with Zigpoll

Follow the steps below to integrate your Weglot translations with your existing survey. Note: this requires you to have a Pro plan or better.

  • Step 1: Go to Zigpoll ⟶ Polls ⟶ Select your poll ⟶ Click the Display tab.
  • Step 2: Scroll to the bottom wher it says Custom Code. Enable this setting and then paste in the code snippet below:

<script src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
// In your iframe
Weglot.initialize({
    api_key: "wg_xxxx", // Replace with your weglot API key
    hide_switcher: true // You already have a switcher in parent window
});
</script>

  • Step 3: Update your existing Weglot code integration to look like the code below:

<script src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
// In your parent window
Weglot.initialize({
    api_key: "wg_xxxx", // Replace with your weglot API key
    translate_iframes: ["#zigpoll-hide-frame", "#zigpoll-launcher-frame", "#zigpoll-poll-iframe"]
});
</script>

And that's it! Now your Weglot integration should be completely set up and your poll will be translated into whatever languge your customer prefers.

Happy polling!

So let's do this.

Try Zigpoll and get the most out of your visitors.

Questions or Feedback?

We would love to hear from you.