This article will guide you through how to use URL parameters on your OptimizePress pages.
As of release 1.1.11, we have included params support without other plugins.
If you instead want to pass optin form parameters to another form (such as a checkout form) please check this guide here:
https://docs.optimizepress.com/article/2496-automatically-pass-optin-form-field-data-and-autofil-another-form
OptimizePress Get Parameters Feature
The OptimizePress Get Parameters feature allows you to grab a value passed through the URL of your page and embed it into the page content. This can be useful for customizing page content for traffic sent from your email list, or by customizing links on pages to send traffic from certain sources to certain URLs (for example customising the order link for certain customers).
In order to use a value from a URL parameter, you need to use the shortcode:
[op3_get_param param='first_name' default='User']
This example would look for the parameter ‘first_name’ and grab the value and embed it in the page. We have also specified a default value here (this is optional) so that if no value is passed through, this default will be used.
An example of the URL to pass this value might be :
http://www.yourwebsite.com/?first_name=James
This would place the value “James” on your page or wherever specified by the shortcode. If no value was passed through, the value would default to User as specified in the shortcode. If no default value is specified, there would be no value shown.
Send Multiple Parameters to a page
Sending multiple parameters/values to a single page is also possible. You just separate the parameters with an & symbol like this:
http://website.com/?param1=123¶m2=456¶m3=789
You would just use a shortcode for each parameter you want to use in the page. These can be adde to headline and text elements.
[op3_get_param param='param1' default='default text']
[op3_get_param param='param2' default='default text']
[op3_get_param param='param2' default='default text']
If you have issues getting things working properly please contact our support team and they will be happy to help.