Skip to content
Menu
CPV Tracker 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 Tracker 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.



Share on Social Media
twitter facebook linkedin email
Previous Post

Using Search Arbitrage for Affiliate Marketing Success

Next Post

What is Affiliate Link Tracking and Why It's Essential for Your Business

Affiliate Takeover conference review
Affiliate Takeover Barcelona: White Hat Vibes, Real Connections, and Zero Empty Chairs
September 29th, 2025 by Julia Draghici
Boost Conversions with Smart Mobile & Desktop Redirects in CPV Lab
Improving Landing Page Performance With Desktop & Mobile Redirects
September 22nd, 2025 by Patrick H
Maxbounty review
MaxBounty Review 2025: Complete Guide for Affiliates
September 9th, 2025 by ElizabetaK
video ads
Video Ads: The Missing Piece in Your Affiliate Marketing Success
August 21st, 2025 by Guest

Leave a Reply Cancel reply

You must be logged in to post a comment.

Subscribe to CPV Blog newsletter for the latest performance marketing trends.

Tracking and optimizing is what we do best! :)

Follow us on Social Media
Instagram
X
Telegram
Facebook
Youtube
Linkedin

Latest Posts

video ads

Video Ads: The Missing Piece in Your Affiliate Marketing Success

3:25 pm 21 Aug 2025
©2025 CPV Tracker Blog