iframe

Creating your Rewards Center iFrame is easy and simple. You just need a page with enough space to run it on your webpage/webapp.

You’ll need to dynamically generate the Rewards Center link based on the PL UID. This ensures that every user gets the right credit for their activity. First generate the PL UID using a script on the server, and pass that to the website.

Embed the iframe

  1. Append the dynamically generated User ID to the end of the User Greeting.
userGreeting = https://www.peanutlabs.com/userGreeting.php?userId=

Example:

# Join User Greeting with the PL UID: https://www.peanutlabs.com/userGreeting.php?userId= + YuneTest01-9145-3cac4c961d```

#Becomes User Greeting URL:

https://www.peanutlabs.com/userGreeting.php?userId=YuneTest01-9145-3cac4c961d

  1. Enclose your User Greeting URL in the iframe tags as shown below:
<!-- Template -->
<iframe src="{{userGreetingURL}}" width="880px" height="2500px" frameborder="0" scrolling="no" name="RewardsCenter"></iframe>

<!-- Sample Iframe -->
<iframe src="https://www.peanutlabs.com/userGreeting.php?userId=YuneTest01-9145-3cac4c961d" width="880px" height="2500px" frameborder="0" scrolling="no" name="RewardsCenter"></iframe>