Skip to content

Create an in-app from a template

The From template gallery offers five ready-made gamified HTML in-apps: Spin the wheel, Scratch card, Login streak, Swipe cards, and Email capture. Each comes with game logic and texts in nine languages, and creating one gives you your own copy to edit and send like any other in-app.

Each template reports what the user did as custom events. Use them to segment users and trigger Customer Journeys by the result.

Choose a template

Anchor link to

Each template is a short game or form. This is what the user does in each one and when to choose it:

TemplateWhat the user doesChoose it toEvents
Spin the wheelTaps SPIN, and the wheel always stops on the fifth sectorReward a completed task with bonus pointsGameResult
Scratch cardScratches the card to reveal a promo codeGive a promo code as a giftGameResult
Login streakTaps Check in to check the seventh day of a week (the template doesn’t count real visits)Reward a seven-day visit streakGameResult
Swipe cardsLikes or dislikes ten interest cards and sees their top categoriesLearn what the user is interested inCardSwipe, GameResult
Email captureEnters an email, accepts the consent, and picks up to three categoriesCollect emails with marketing consent and favorite topicsEmailCaptured, InterestsSelected

See Track the results for the attributes of each event.

Create the in-app

Anchor link to

Pick a template in the gallery and create your own copy of it.

  1. Go to Content → In-Apps.
  2. Click the arrow next to Create in-app and choose From template.
Create in-app dropdown on the In-Apps page with the From template item highlighted
  1. Pick a template.
Create in-app from template window with five template tiles, each listing its events, and the In-app name field
  1. In In-app name, keep the template name or enter your own.
In-app name field filled with “Weekly bonus wheel” above the Cancel and Create in-app buttons
  1. Click Create in-app.

The in-app is created right away and opens in the HTML in-app editor.

Edit texts and colors

Anchor link to

Change the texts and colors of your copy on the Content tab.

  1. In Language, choose the language to edit.
  2. Change the texts and colors you need. For right-to-left languages, Text direction is already set to rtl.
  3. Click Save.

To undo the changes you haven’t saved yet, click Reset for the current language or Reset all for all languages. Download saves the in-app as a ZIP archive.

Prizes are texts too, such as the wheel sectors and the promo code, so you change them on the Content tab. The HTML tab holds the template code: leave it to your developer.

Texts come translated into English, French, Russian, Spanish, Portuguese, Japanese, Chinese, Arabic, and Hebrew. The user sees the in-app in the language of their device, or in English if the in-app has no texts in that language.

Anchor link to

The last button of these two templates can open a page or a screen of your app:

  • Spin the wheel: in Claim button URL, set where Claim points leads.
  • Swipe cards: in Button URL, set where See your picks leads.

Enter a web address, for example https://example.com/rewards, or a deep link of your app, for example myapp://rewards. If the field is empty or the value has no scheme like https: or myapp:, the button just closes the in-app.

Anchor link to

The Email capture form asks the user to accept your privacy policy, and the template has no link to it. In Policy link URL, enter the address of your privacy policy page, starting with http:// or https://.

Email capture in-app on the Content tab with the Policy link URL field filled in

Until the field holds an http:// or https:// address, the link has a red dashed outline and does nothing on tap. The outline shows on the user’s device too, so set the URL in every language before you send the in-app.

Track the results

Anchor link to

When a user plays, the in-app sends events to Pushwoosh, and each event carries attributes with the result. Use them to see who won or which categories users picked, and to react: build a segment by an attribute, or start a Customer Journey on an event. For example, make a segment of users who sent GameResult with result set to win.

The in-app doesn’t give the prize itself. The default texts say the points are already in the user’s account, so credit them yourself when the event comes, for example from a Customer Journey started by GameResult, or change the texts. To see how many times each event came, open its statistics.

Pushwoosh creates an event automatically the first time a user sends it, together with its attributes, so you don’t need to create the events before you send the in-app.

The events and attributes of each template are below. Button names are the default English texts of the templates.

Spin the wheel

Anchor link to

The in-app sends GameResult once.

AttributeValue
gamespin_wheel
resultwin
prize_typepoints
prize_value300

Editing the sector texts doesn’t change prize_value. If you change the fifth sector to a different prize, ask your developer to update the value on the HTML tab.

Scratch card

Anchor link to

The user scratches the card to reveal the promo code from the Promo code field, and the in-app sends GameResult once. The user can copy the code with the Claim gift button.

AttributeValue
gamescratch_card
resultwin
prize_typepoints
prize_value500

Login streak

Anchor link to

The in-app shows a week with six days already checked. It doesn’t count the user’s real visits, so send it to users who are on day six of a streak you track yourself, for example with a tag. When the user taps Check in, the seventh day is checked and the in-app sends GameResult.

AttributeValue
gamelogin_streak
resultday_7
prize_typepoints
prize_value300

Swipe cards

Anchor link to

The user likes or dislikes ten interest cards. Each swipe sends CardSwipe:

AttributeValue
card_nameCard text, for example Movies
categoryCategory text of the card, for example Entertainment
reactionlike or dislike

After the last card, the in-app shows the user’s top categories and sends GameResult:

AttributeValue
gameswipe_cards
resultUp to two most-liked categories in lowercase, comma-separated, for example entertainment,culture. none if the user liked nothing.
prize_typenone
prize_value0

card_name, category, and result carry the texts in the language the user saw. To compare results across languages, segment by the values of each language.

Email capture

Anchor link to

The form has three steps.

  1. The user enters an email and checks the consent box. On submit, the in-app adds the email to the same user as an email contact, so you can send emails to this user, and sends EmailCaptured:

    AttributeValue
    sourceinapp_form
    consent_marketingtrue

    The email is added only in apps with Pushwoosh iOS SDK 6.11.0 or later or Android SDK 6.7.38 or later.

  2. The user picks up to three categories and taps Done. The in-app sends InterestsSelected with categories: the picked categories, comma-separated, for example News,Travel. It also saves them to the Favorite Categories tag. If the user taps Skip, nothing is sent.

  3. The user sees the confirmation screen and closes the in-app.

To segment by these categories, create the Favorite Categories tag first, as described in the Before you send note in Send the in-app.

Send the in-app

Anchor link to

Template in-apps work in iOS and Android apps. A template in-app is sent like any other in-app: in a Customer Journey, as a one-time in-app, or from a push. See how to use an in-app in campaigns.