Embed the Viral Referral Page on my Site
If you would like to host the Viral Referral Page on your own site — for example, to redirect to a thank you page on your own site after the Signup Form is submitted or to encourage viral referrals elsewhere within your application — then you can do so by following these instructions.
Step 2: Copy and paste this code into your web page where you want the Viral Referral Page to appear.
<div class='prefinery-viral-referral-embed' data-prefinery-tester-id='TESTER-ID'></div>
Note: Please remember to change the TESTER-ID to the unique ID of the user for whom you want to encourage viral referrals. Optionally, you may choose to look up the user by e-mail address as described below.
Additional Configuration Settings
Here is a complete reference of all settings you can pass to the Viral Referral Page. Just add any of these as data attributes to the prefinery-viral-referral-embed div.
|data-prefinery-tester-id||integer (e.g. 100456)||Lookup the tester's viral referral page by Tester ID.|
|data-prefinery-tester-email||string (e.g. "email@example.com")||Lookup the tester's viral referral page by Tester Email.|
<div class='prefinery-viral-referral-embed' data-prefinery-tester-email="firstname.lastname@example.org"></div>
Additional Wordpress Instructions
Step 1: Install the URL Params plugin, found here.
Step 2: Copy and paste this code into your Wordpress page where you want the Viral Referral Page to appear.
[urlparam htmltag="div" class="prefinery-viral-referral-embed" attr="data-prefinery-tester-id" param='ref' /]