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

Location targeting to optimize ROI
Improving Your ROI With Geo Targeting For Your CPV Lab Campaigns
May 6th, 2025 by Patrick H
Storytelling landing pages for Google Ads
Storytelling Landing Pages for Google Ads
April 17th, 2025 by Guest
Jitendra Vaswani is an affiliate marketer, SEO expert, blogger, author, and speaker
The Future of Affiliate Marketing: Insights from SEO Expert Jitendra Vaswani
April 14th, 2025 by Julia D.
NewsBreak Creatives recommendations
The Power of Creatives: Driving Meaningful Performance on NewsBreak
April 3rd, 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

Location targeting to optimize ROI

Improving Your ROI With Geo Targeting For Your CPV Lab Campaigns

11:24 am 06 May 2025
Storytelling landing pages for Google Ads

Storytelling Landing Pages for Google Ads

10:44 am 17 Apr 2025
Jitendra Vaswani is an affiliate marketer, SEO expert, blogger, author, and speaker

The Future of Affiliate Marketing: Insights from SEO Expert Jitendra Vaswani

12:26 pm 14 Apr 2025
NewsBreak Creatives recommendations

The Power of Creatives: Driving Meaningful Performance on NewsBreak

8:28 am 03 Apr 2025
client hints

Client Hints: The Future of Device Detection

11:03 am 31 Mar 2025
Facebook Ads, CPV Lab and Email marketing connected

How to send conversions to Facebook CAPI from an email campaign?

9:42 am 25 Mar 2025
CPV Lab and CPV One are part of AdTech day

World AdTech Day: a celebration of innovation and the minds behind it

9:04 am 23 Mar 2025
©2025 CPV Tracker Blog