• Register
  • Login
  • Pricing
  • Support
    • Support
    • Tutorials
    • Blog
    • Guide
    • Support Forum
  • Notification Settings Notification Settings
  • All Messageboards
  • Bugs

Can't vote when use embed

Started 2025-08-03 by Thomas Moretti

Thomas Moretti

2025-08-03

Hi,

i 'am trying to embed this example pole for a music selection
https://pollunit.com/en/polls/t04ev1e1tgazcfyfpvmmka

It works ok from your website but if I try to embed with the following code in a plain simple html with some css (is that the issue?):

    <div 
        class="pollunit-container"
        data-pollunit-src="https://pollunit.com/en/polls/t04ev1e1tgazcfyfpvmmka">
    </div>
    
    <script 
        src="https://pollunit.com/embed/v2/parent_code.js"
        integrity="sha384-S3TDKDQ1Ez0uVRYJTD+w2QdyjfCekDSdr48GcY8I02ady93JtBitr+GZNqK52eSz"
        crossorigin="anonymous">
    </script>

Then I am only able to see, but any click/vote, refreshes the embeds and nothing seems to be submitted, the chrome console reveals no error.

Any idea, even random I'll take it, or even better if anybody is able to show me a working example of that one embdeded I take also.

thanks;

Philipp Großelfinger

2025-08-04

Hi Thomas,
Can you share the page, where it is embedded with philipp@pollunit.com?
I think CSS does not affect the functionality, but it is better the analyze the page where it is embedded.
Kind regards
Philipp

Thomas Moretti

2025-08-04

Hi Philipp, just sent it to your mailbox.

Thomas Moretti

2025-08-04

Hi Philipp, sorry to be pressing, but we need to figure out quickly whether we can use your solution. Is there ability to get somebody to look into this ? And what would be your ETA to confirm/deny a bug here?

Markus Huber

2025-08-04

Thank you for your email and the attached files.

From what I can see, it appears you're testing the embedded PollUnit on a local page rather than on a live, publicly accessible website. Please note that embedded PollUnits require a real host environment to function correctly.

If you’re embedding PollUnit on an actual live page, kindly share the link with us so we can review it. Without access to the live page, we’re unable to identify or troubleshoot potential issues effectively.

Thomas Moretti

2025-08-04

Hi Markus, I did notice that and whitelisted the domain before making this post. The ask was for the source code so I complied.

I have sent another email with a public webpage that you can check.

Thanks

Thomas Moretti

2025-08-05

Hi Markus, Phillip,

Any luck so far ?

Thanks;
Thomas

Markus Huber

2025-08-05

We don’t have a fix for this issue yet. However, it seems to occur only when both the embedded version and the standalone version (with login) are used in the same browser.
We’re aiming to have a solution in place by Thursday.

Thomas Moretti

2025-08-07

Hi Markus,

checking in…

thanks,
Thomas

Philipp Großelfinger

2025-08-07

Hi Thomas,
It should be fixed now! It could be the case that you need to delete your cookies once more before testing this.
Kind regards
Philipp

Thomas Moretti

2025-08-07

Hi Philipp and Markus,

I have just tested in the html page and in the real page where I am embedding, and both are working. This is good thank you.

I have one last question, is possible for the popup asking for my name to not appear, I was in your docs that I could supply a userId, would that disable the popup? If not, is that something doable?

thanks,
Thomas

Philipp Großelfinger

2025-08-07

Ok great!
For the User name popup: You can disable it by checking "anonymize voter names" in step 4 of the wizard.

Thomas Moretti

2025-08-07

Does that mean that, as an admin I also lose the possibility of tracking who voted what?

Markus Huber

2025-08-07

When you remove the overlay that asks for the voter's name, this information is no longer collected. However, you can still track your voters by using URL parameters. To do this, define the parameters in the Advanced step and then append them to the data-pollunit-src attribute. This requires generating the embedding script dynamically per user to include the desired parameters.

Thomas Moretti

2025-08-07

Ok very good exactly what I was looking for!

Please close the ticket my issue is resolved. thank you for the support!

Tools

  • Voting
  • Surveys
  • Free Tables
  • Collect Ideas and Feedback
  • Photo Contests
  • Video Contests
  • Music Contests
  • Landing Page
  • Pairwise Comparison
  • PollUnit Lab

Support

  • Get Started
  • PollUnit Help
  • Tutorials
  • Support Forum
  • support@pollunit.com

Tutorials

  • Create your first poll
  • Advanced poll features
  • Advanced survey branching logic
  • Distribute tasks online
  • Cast votes and rate options
  • Find a date
  • Vote on images
  • Create your own theme
  • Polls with your own logo
  • Evaluate your PollUnit
  • Dot Voting
  • Range Voting
  • Polls on your own website
  • Live Voting
  • Reach a consensus
  • Manage orga­nizations
  • Prevent multiple participation
  • Donations and participation fees

Legal

  • Privacy policy
  • Terms of use
  • Imprint

PollUnit

  • PollUnit Blog
  • About PollUnit
  • Press kit
  • © PollUnit
  • Register
  • Login
  • Pricing
  • Support
    • Support
    • Tutorials
    • Blog
    • Guide
    • Support Forum