One easy quick win that’ll make you look like a growth hacking god 🤘. Dynamically match your landing page adcopy to your ad campaigns. 20-30% boost to conversion rate guaranteed. You don’t need to know how to code, or buy any expensive personalization tools…
I’ve got an idea.
It’s an old trick we used to use in my agency days
It’s not really complicated code, so why don’t you give it a try?
This course is a work of fiction. Unless otherwise indicated, all the names, characters, businesses, data, places, events and incidents in this course are either the product of the author's imagination or used in a fictitious manner. Any resemblance to actual persons, living or dead, or actual events is purely coincidental.
In order to grab the utm_campaign URL parameter you can use the document location API combined with in-built URL parsing common to all major browsers, i.e. `new URL(document.location.href)`. This lets you then get the value of “utm_campaign” from the searchParams directly. Once you have that, you can feed it into a switch statement, which lets you run code conditionally based on different values of utm_campaign. In each case within the switch statement you would change the title and description of the page to some different value, stored in variables. Once the case statement has run and the relevant adcopy has been selected, you use the document querySelector to find the elements and change their text content. You should do this last part in an IF statement, so you’re not making a change if there are no utm_campaigns.
Complete all of the exercises first to receive your certificate!
Share This Course