Survey IFrame Integration Guide
Embed the Prime Earn survey wall directly into your app or website using an IFrame or WebView. This guide walks you through the full setup in six steps.Step 1 — Get Your URL
Your dedicated survey wall URL is:XXXXXXXX with your Publisher App ID and Test123 with your user’s unique identifier (see Step 3).
Need the combined wall (Surveys + Games)? Use
https://monetize.primeearn.com/featured?app=XXXXXXXX&uuid=Test123 instead.Step 2 — Implement in Your App or Website
Choose the integration method that fits your platform:WebView (Mobile Apps)
Load the URL inside a native WebView component. Make sure the WebView has:- JavaScript enabled
- DOM storage enabled
- Redirect/navigation handling so external links open in a browser
IFrame (Web)
New Browser Tab
If an IFrame is not suitable, open the URL in a new tab:Step 3 — Pass Parameters
Replace theuuid placeholder with a unique, stable identifier for the current user. This ties survey completions to the correct account.
Source & Network ID Reference
Pass the numeric
ID as the value for both source and network. Choose the row that best describes how the user arrived in your app.
Example with a real user ID:
Step 4 — Customize Design
The survey wall supports several design parameters you can append to the URL.
Example:
Step 5 — Handle Rewards via Postback
When a user completes a survey, Prime Earn fires a server-to-server postback to your configured callback URL.Postback URL Format
Configure your callback URL in the dashboard. Prime Earn will substitute the placeholders at the time of the event:Postback Parameters
Survey Event Types ({type})
Whitelisting IPs
Ensure your server accepts postback requests from these Prime Earn IPs:Step 6 — Go Live
Before enabling for all users, run through this checklist:- Replace
XXXXXXXXwith your real Publisher App ID - Replace
Test123/uuidwith your real user ID logic - Configure your postback URL in the Prime Earn dashboard
- Whitelist the Prime Earn IP addresses on your server
- Test a full survey completion in a staging environment and verify your postback receives the correct parameters
- Verify deduplication logic using
{tx_id}