Skip to content
Menu
CPV Lab Pro Blog
  • Go to cpvlab.pro
  • MV Lab
  • FAQ
  • Contact
  • Demo
CPV Lab Pro Blog
URL Params in WordPress for affiliate marketing

URL Params Tutorial – WordPress Integration With CPV Lab

Posted on April 30, 2023May 24, 2023 by Patrick H

Hey guys,

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 into our landing page, we have to put the name of the parameter we used in CPV Lab into the WordPress short code.

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/


Guest Author– Patrick Hill

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Share on Social Media
twitter facebook linkedin email
◀Using Search Arbitrage for Affiliate Marketing Success in 2023
What is Affiliate Link Tracking and Why It's Essential for Your Business in 2023▶

Leave a Reply Cancel reply

You must be logged in to post a comment.

Subscribe to our newsletter

Follow us on Social Media
Facebook Youtube Linkedin

Latest Posts

Discover CPV One - campaign analytics

Discover CPV One for Campaign Analytics

10:15 am 18 Sep 2023
Integrate UTM Codes and CPV One with Google Analytics

How to integrate UTM Codes and CPV One with Google Analytics 4

7:58 am 15 Sep 2023
How to test affiliate offers with SurfShark VPN

VPN Shark For Your Affiliate Campaigns

9:13 pm 29 Aug 2023
Easy tracking WordPress Pages with CPV Lab

Easy WordPress tracking with CPV Lab and default HTML editor

11:14 pm 13 Aug 2023
Custom tracking domains in affiliate marketing

Custom Tracking Domain in Affiliate Marketing

5:33 pm 08 Aug 2023
Adplexity - Native Ads - step by step tutorial

Adplexity Native Ads Tutorial

11:24 am 25 Jul 2023
Direct Affiliate Link vs landing page

Which is Better – a Direct Affiliate Link vs Landing Page?

10:23 am 19 Jul 2023
Affiliate Traffic Sources

Affiliate Traffic Sources: 7 Ways To Promote Affiliate Links In 2023

11:05 pm 15 Jul 2023
Add CPV Lab tracking code to WordPress

Easy Tracking for WordPress – Tutorial

10:34 am 11 Jul 2023
Advanced techniques for fast loading landing pages

Lightening Fast Landing Pages

8:08 am 02 Jul 2023
©2023 CPV Lab Pro Blog
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}