Skip to content
Menu
CPV Lab Blog
  • Affiliate Marketing
    • Learn Affiliate Marketing
    • Tracking
      • Postback URL
      • Custom tracking domains
    • Landing page optimization
    • Campaign Optimization
    • Case Study
    • Traffic Sources
    • Affiliate Networks
  • News & Updates
    • Champions of Performance Marketing
    • Digital Marketing
    • Tracking and Attribution
    • Hosting
    • Events
    • Guest Posts
  • Ads
    • Google Ads
    • TikTok Ads
    • Facebook Ads
    • Native Ads
    • Tutorials
    • CPA Affiliate Marketing
  • CPV Lab
    • Self-hosted tracker
  • CPV One
    • Cloud-hosted tracker
  • MV Lab
    • Multivariate testing tool
CPV Lab Blog
URL Params in WordPress for affiliate marketing

URL Params Tutorial – WordPress Integration With CPV Lab

Posted on April 30, 2023May 8, 2024 by Patrick H

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.

WordPress dynamic variables tutorial

Step 2: Go to Plugins

Click on the “Plugins” tab in the left hand column.

WordPress dynamic variables tutorial

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. 

WordPress URL Params tutorial

Step 3: “URL Params” Plugin

Enter the keyword “URL Params” into the search box towards the top right hand corner.

How to add a new plugin in WordPress

Find the “URL Params” plugin. 

URL Params plugin in WordPress

Then, click the “Install Now” button.

How to add a new plugin in WordPress

And, activate the plugin by pressing the blue “activate” button. 

How to activate plugin in WordPress

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"/]
Simple landing page in WordPress

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.

CPV Lab marketing tracker - dynamic variables

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.

URL Params - affiliate marketing easy landing page

Step 6: Test your campaign

Now, just copy your CPV Lab Campaign URL and test your link. And, we’re finished! 

Affiliate marketing easy landing page

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"/]
Dynamic variables in WordPress landing page

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.

CPV Lab affiliate marketing tracker

Then, find the name of the parameter in the “Parameter” box in your CPV Lab campaign. 

CPV Lab ad tracker - parameters for landing page

Use the exact same name in the WP Params short code like this:

Example of Dynamic variables in WordPress

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.

Dynamic values in WordPress landing page

Thank you for checking out this tutorial! 

You can check the tutorial about how to create super simple landing pages with WordPress here!

https://cpvlab.pro/blog/2023/02/17/super-simple-landing-pages/.

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. 


Patrick Hill

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.



Previous Post

Using Search Arbitrage for Affiliate Marketing Success

Next Post

Affiliate Link Tracking: What it is & How It Works

cookieless tracking
Cookieless tracking for affiliate marketing: what changed and what to do about it
June 17th, 2026 by ElizabetaK
CPV One vs Redrack CPVLab vs Redtrack
CPV One vs RedTrack: The Honest Tracker Comparison for Media Buyers (2026)
June 7th, 2026 by ElizabetaK
Mondiad Popunder ads tracking
Mondiad Popunder Ads: How to Run High-Volume Campaigns with CPV Lab Tracking
June 5th, 2026 by Guest
Postback URL Tracking
Postback URL Tracking: The Complete Guide for Affiliate Marketers
June 3rd, 2026 by Alex B.
Follow us on Social Media
Instagram
X
Telegram
Facebook
Youtube
Linkedin

Latest Posts

cookieless tracking

Cookieless tracking for affiliate marketing: what changed and what to do about it

6:31 pm 17 Jun 2026
ROIAds ad network review

ROIads review 2026: AI-driven push and pop ad network with dedicated account managers

9:56 am 10 Jun 2026
CPV One vs Redrack CPVLab vs Redtrack

CPV One vs RedTrack: The Honest Tracker Comparison for Media Buyers (2026)

1:36 pm 07 Jun 2026
Mondiad Popunder ads tracking

Mondiad Popunder Ads: How to Run High-Volume Campaigns with CPV Lab Tracking

9:28 am 05 Jun 2026
Postback URL Tracking

Postback URL Tracking: The Complete Guide for Affiliate Marketers

11:12 am 03 Jun 2026
Affiliate Campaign Optimization

Luke King on Affiliate Campaign Optimization, and What It Really Takes to Start: Part 2

6:44 pm 22 May 2026
Lovable.dev landing pages

AI Landing Pages for Affiliate Marketing: How to Build, Prompt and Track with Lovable.dev and CPV Lab

2:14 pm 18 May 2026
Telegram Ads

How to Track Telegram Ads for Affiliate Marketing

10:12 am 14 May 2026
Luke King- Afflift

Luke King on Building affLIFT and Staying Competitive in Affiliate Marketing: Part 1

10:40 am 30 Apr 2026
click loss in google ads

Click Loss in Google Ads: What’s Normal and How to Fix It

8:13 am 22 Apr 2026
©2026 CPV Lab Blog