Using URL Parameters in OP3 pages

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

Caution: This article deals with advanced features/functions of OptimizePress which may require knowledge of coding / HTML or web development. Please contact your web developer for assistance with this.

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&param2=456&param3=789

If you have issues getting things working properly please contact our support team and they will be happy to help.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.