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.
Step1: Configure your Prefinery Signup Form to redirect to your thank you page after the form is submitted. To do this, click on the Signup Form link in the left-hand sidebar then navigate to the Settings tab. Change the answer to "After the form is submitted, what do you want to do?" to "Redirect to a URL" and enter your the URL to the thank you page on your site (e.g. https://yourdomain.com/thank-you). Make sure to also enable the option to include the user ID in the the redirect URL.
Step 3: Copy and paste this code into your web page where you want the Viral Referral Page to appear.
Note: We will automatically personalize the Viral Referral Page based on the value of the "ref" URL parameter, representing the ID of a particular user in your account. If you would like to explicitly set the ID of the user to use when personalizing the referral page content, you may set the data-prefinery-tester-id attribute 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. "firstname.lastname@example.org")||Lookup the tester's viral referral page by Tester Email.|
<div class='prefinery-viral-referral-embed' data-prefinery-tester-id="100456"></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' /]