Using URL Parameters in OP3 pages

This article will guide you through how to use URL parameters on your OptimizePress pages, through the use of our free add-on plugin, OP-Get-Params

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.

Download & Install the Get Params Shortcode plugin

Here's the download link to save the zip file for this plugin to your computer

optimizePressGetParamShortcode.zip

The plugin should be installed via Plugins > Add New - and upload the plugin Zip to your website

How to use the plugin

The OptimizePress Get Parameters Plugin 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:

[op_get_param param="promoCode" default="111"]

This example would look for the parameter "promoCode" 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 defau

An example of the URL to pass this value might be:ue will be used.lt val

http://www.yourwebsite.com/?promoCode=123

This would place the value "123" on your page or wherever specified by the shortcode.  If no value was passed through, the value would default to 111 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 singple page is also possible.  You just separate the parameters with an & symbol like this:
http://website.com/?param1=123&param2=456&param3=789

Important Notes

Use 'single quotes' in the shortcode with some elements
You may need to use single quotes instead of regular quotes in order to get the parameter to work properly. 

Example of proper single quote usage: [op_get_param param='promoCode' default='111']

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.