How to Add Dynamic Keyword Insertion (DKI) to Leadpages

Personalization takes your lead generation to a whole new level

In this post, we'll show you how to add a missing feature to Leadpages - Dynamic Keyword Insertion.

If you're unfamiliar, Leadpages is like the Swiss Army knife of landing page builders. It's got all the bells and whistles you need to create stunning pages. 

But here's the thing: stunning pages are great, but personalization is the secret sauce that takes your lead generation to a whole new level. And that's where dynamic keyword insertion comes in.

It's like sprinkling magic on your landing pages, turning them into personalized experiences. 

In this laid-back guide, we'll walk you through the ins and outs of adding dynamic keyword insertion to Leadpages.

Don't worry, no coding skills are required. It's time to make your prospects feel like you're reading their minds (in a totally non-creepy way). 

You'll learn:

  • How to create unlimited personalized pages effortlessly.
  • The power of unlimited tokens for ultimate customization.
  • Sweet case-related tricks and time-saving hacks.
  • Pre-populating forms with personalized information. 

Adding Dynamic Keyword Insertion to Leadpages

For this guide, we assume you have a Leadpages account and have set up a Landing Page template. 

We have set up an example Landing Page titled ‘Home Hunter’ to show you how you can dynamically change specific values using our code. 

Adding The Script To Your Landing Page 

The Leadpages interface is very simple. Once you have set up your page, click SETTINGS here on the left. 

From there, once the window opens up, you click on ANALYTICS here. 

Once in the Analytics section, head on down to the HEAD SECTION TRACKING CODE part.

From here, you want to add the code. We are adding two lots of code here. 

You have two options:

This is the normal version of the script:

<script src="https://cdn.speedppc.com/dki.min.js"></script>

For the more security-conscious out there, there's an optional script called Dompurify you can also add to the head that helps further prevent nasty cross-site scripting (XSS) attacks:

<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.0.3/purify.min.js" integrity="sha512-TBmnYz6kBCpcGbD55K7f4LZ+ykn3owqujFnUiTSHEto6hMA7aV4W7VDPvlqDjQImvZMKxoR0dNY5inyhxfZbmA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

Once you've done that. Press SAVE.

Adding Tokens To The Page For Dynamic Keyword Insertion Replacement

These are just some conventions to be aware of at this point. 

You can see double brackets for the name, and the fallback appears after the colon. You can also modify the case by changing the case of the actual value that you are replacing.

[[Headline: Fallback]] = Sentence case

[[headline: Fallback]] = lowercase

[[HeaDline: Fallback]] = Title Case

[[HEADLINE: Fallback]] = ALLCAPS

From here, you can preview or publish your page.

How to change the text on the page

Now this is the fun part where you start to see how the DKI code really works.

We are using the HeaDline format in this example.

I am going to change the text to Cronulla. 

To do this, you only need to add this very simple change to the end of your URL.

All you need to add is ?headline=Cronulla and will change your headline to Cronulla. 


So you can switch out the headline for anything. Just make sure that the headline and the token name are the same.

How it works with SpeedPPC

At this point we can jump over to SpeedPPC. The example below will show how the campaign builder looks after it pushes the keyword list into the landing page. 

We are going to set up a new campaign which we will call Home Hunter and then we will SAVE it.

Now to find some keywords you'll use. Let’s use the saved keyword sets and use Australian cities. 

Next, add some of our seed keywords to see how SpeedPPC pumps out the results.

In the URL we will enter:


By utilizing our SpeedPPC Campaign Builder, you can revolutionize your advertising game.

Simply input your ad text and descriptions as usual, and watch the magic happen. Your output will now be tailored specifically to your user's search query and location, saving you a ton of time and effort while creating incredibly targeted ads.

With SpeedPPC, you can dynamically incorporate your keywords into the URL, resulting in personalized landing pages or relevant ad groups for each keyword.

Picture this: a unique landing page for every Australian city in our example.

The impact? Your PPC conversion rates will soar, relevancy will skyrocket, click-through rates (CTR) will spike, and your quality score will reach new heights. It's a game-changer for your advertising success.

For a full demonstration of how to build a SpeedPPC campaign, watch this video


Sign up for SpeedPPC here. 


Learn more about the DKI script here. 


There is nothing to lose...

Try SpeedPPC and if you don't improve your PPC lead generation profits by more than the subscription cost, we'll refund you.

AI Powered

We leverage the latest AI capabilities to help you become a superhero when it comes to creating successful PPC campaigns.


Like any software, if SpeedPPC doesn't at least pay for itself, you shouldn't be using it. The difference is we actually guarantee it.

So what's this SpeedPPC guarantee all about?

It's pretty simple. Consider it a handshake agreement.

If you genuinely try out the TALL Framework and the SpeedPPC platform and after 60 days, you haven't at least covered the costs of SpeedPPC, we'll refund you 100% of your SpeedPPC subscription.

Let us know within 60 days and we'll trigger the refund and cancel your subscription.

Fast Support

We actually care about your success and we aim to get your the support you need as quickly as possible.

Copyright © 2024 SpeedPPC Pty Ltd. All rights reserved.