Login & personalization · Demo 6 of 6

Vote straight from the newsletter

Put the first question of a Riddle into your email. Every answer is a link: one click opens your page, the Riddle counts the vote and goes straight on to question 2.

Riddle feature: submit first block via data layer

Setup: about 15 minutes

Works in any newsletter tool

Live Riddle

Poll · 2 questions

[[dg-emailvote form=xk8iAe5y q=Do+you+think+voting+from+your+inbox+is+useful? a=Yes,+I+think+this+is+a+great+feature.|Obviously.+This+is+an+amazing+feature]]

[[dg-riddle LDIumwsv h=285 hm=357]]

Click an answer in the email above, or get the real email further down. Your vote arrives as r_s in the page address, and the poll continues with question 2.

[[dg-inspector]]

What just happened

One click in the inbox, one vote in the Riddle.

01

Every answer is a link

The email holds the first question. Each answer links to the page with the Riddle, plus ?r_s= and the answer's number: 0 for the first, 1 for the second.

02

The page passes r_s on

The Riddle embed script reads the parameter from the page address and hands it to the Riddle through the data layer. No code on your side.

03

The Riddle counts the vote

With “Submit first block via data layer” switched on, the Riddle submits that answer for block 1 and opens question 2. The vote counts in your stats like a click in the Riddle.

Build it yourself

The email links and the Riddle settings.

1 · In your newsletter

One link per answer, all pointing at the page where the Riddle is embedded. The number is the answer's position, counting from 0, so keep the answer order fixed.

<h2>Do you think voting from your inbox is useful?</h2>

<a href="https://your-site.com/poll/?r_s=0">
  Yes, I think this is a great feature.
</a>
<a href="https://your-site.com/poll/?r_s=1">
  Obviously. This is an amazing feature
</a>

// on https://your-site.com/poll/ the Riddle is embedded
// with the normal script embed code; it reads r_s itself

2 · In the Riddle Creator

One switch, and Riddle writes the links for you.

  1. Publish → Data layer: switch on “Submit first block via data layer”.
  2. Page URL: enter the page the Riddle is embedded on, or leave it empty to use the Riddle landing page.
  3. Links: copy the link below each answer for social posts, or the HTML from the grey box for your newsletter.
  4. Embed: use the script embed code on that page, and keep “Shuffle answers” off for the first question.

Try it for real

Get the email in your inbox.

[[dg-riddle xk8iAe5y h=431 hm=724]]

Next track · Ads & revenue

Ads inside the Riddle

Open demo →
Scroll to Top