This is a tutorial that will show you exactly how to use dynamic variables into your WordPress landing pages.
This is a continuation of the initial article about CPV Lab’s Dynamic Insertion.
In this tutorial, I will easily show you how to insert a user’s city, region, and device name into your landing page and have it dynamically change by using URL Params plugin.
Step1: Login to WordPress
Log into your WordPress admin interface and go to your WordPress dashboard.
Step 2: Go to Plugins
Click on the “Plugins” tab in the left hand column.
And then click the “Add New” button towards the top left hand corner of the menu bar.
This will open the form to add a new plugin to your WordPress instance.
Step 3: “URL Params” Plugin
Enter the keyword “URL Params” into the search box towards the top right hand corner.
Find the “URL Params” plugin.
Then, click the “Install Now” button.
And, activate the plugin by pressing the blue “activate” button.
Step 4: Update your landing page
Go to a landing page, blog post, or sales page and enter this short code into your page.
This code will mark the place where you want the dynamic text to appear in your landing page.
Short code:
[urlparam param="FirstName" default="Friend"/]
Step 5: Update the code with CPV Lab’s parameter
Change the words “FirstName” in the short code to the name of parameter you want to use in CPV Lab.
For example, if we want to place the state (or region) of our user on our landing page, we have to put the name of the parameter we used in the affiliate tracking software CPV Lab into the WordPress shortcode.
Since we used the name “example1” as the name of our parameter (like this):
https://safelife.com/dating?example1={!mm_state!}
We have to change the param name in our short code from “Firstname” to “example1“.
Before:
[urlparam param="FirstName" default="friend"/]
After:
[urlparam param="example1" default="friend"/]
Example Screenshot:
This is how my landing page will look like with a dynamic parameter.
Step 6: Test your campaign
Now, just copy your CPV Lab Campaign URL and test your link. And, we’re finished!
Step 7 (optional): Default value
Optional: It’s important to use backup text (default value) just in case a user’s location can’t be found an placed into the landing page.
The word “friend” can be replaced by any text you’d like to use:
[urlparam param="example1" default="friend"/]
For example we’re using the text “Your Area“, so if the users location can’t be found at least we’ll have text to replace the missing variables.
[urlparam param="example1" default="Your Area"/]
Alternative Method:
If you want to pass data from the “Macros and Tokens” section in CPV Lab to your landing page, make sure the “LP” box is checked.
That checkbox means the parameter is sent to the Landing Page.
Then, find the name of the parameter in the “Parameter” box in your CPV Lab campaign.
Use the exact same name in the WP Params short code like this:
When the tokens are working successfully the users data should be inserted.
And then you can use the reports inside CPV Lab ad tracker to check your campaign results.
Thank you for checking out this tutorial!
You can check the tutorial about how to create super simple landing pages with WordPress here!
By integrating the URL Params plugin into your WordPress landing pages, you can take your affiliate marketing campaigns to the next level. This powerful tool allows you to dynamically insert user-specific information, making your landing pages more engaging and relevant. As showcased in this tutorial, it’s a game-changer for optimizing campaigns. To further enhance your affiliate marketing journey, explore the wealth of resources and insights available on CPV Lab Pro’s blog, such as the CPA Network Approval Guide.
Guest Author: Patrick Hill
Patrick is an affiliate marketer with 8+ years marketing experience. He was certified at Meclabs Research Institute in 2019 for value proposition development and a Photoshop designer. He has experience working as a technical support manager at a CPA network, and loves to make graphic design and programming easy for average people.