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;
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
Hi Philipp, just sent it to your mailbox.
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?
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.
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
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.
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
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
Ok great!
For the User name popup: You can disable it by checking "anonymize voter names" in step 4 of the wizard.
Does that mean that, as an admin I also lose the possibility of tracking who voted what?
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.
Ok very good exactly what I was looking for!
Please close the ticket my issue is resolved. thank you for the support!