Actionable Best Ways To Increase Your ROI With Code

0 replies
In marketing you need every advantage you can get.

A landing page is one of those advantages.

But are you squeezing...

....every bit of ROI possible from your traffic?

What if a few lines of code could increase your profits?

Geo-Location Call Out

Calling out a users location is a great way to get their attention! To do this some options are free, others are paid. In this example I will be using a free option, that I have found works well in the US. The first thing you need to do is add this piece of Javascript in theof your document. Also, make sure that you have JQuery being called on your page.


<script type="text/javascript" src="http://www.jsgeoip.com/geoip.js"></script>

Next you need to add a bit of JQuery.

Be sure to add a line for EACH time you're going to call the location.


HTML Code:
<script> 
$(document).ready(function() {
    $('#city').html(geoip_city());
    $('#city2').html(geoip_city());
    $('#city3').html(geoip_city());
    $('#city4').html(geoip_city());
}); 
</script>

Now whenever you add the following code to your landing page, it will dynamically insert their city.


HTML Code:
<span id="city">{cityname}</span>
<span id="city2">{cityname}</span>

Like I mentioned this is the free option, so it's not as accurate as it could be.

If you need a more reliable option, check out: Maxmind

You can also call out, State, Country & Zip code

The free option works best with Wifi traffic but fails with carrier traffic.

Date Call Out

There is nothing better to make a sense of urgency....

....then knowing something may not be here tomorrow.

To do this you can use Javascript to do date call outs.

Now there are quite a different variations of this script.

But

This one should give you a basic idea!

First you'll want to add this bit of Javascript in between yourtag.


HTML Code:
<script>
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();

if(dd<10) {
    dd='0'+dd
} 

if(mm<10) {
    mm='0'+mm
} 

today = mm+'/'+dd+'/'+yyyy;
</script>
You will then add the following code where ever you want the current date to show up.


document.write(today);


Random Count Down

Another way to add a sense of urgency to your landing pages, is to add a random count downtimer.

As an example:

"There are only 17 ebooks left"

With this code it would randomly count down to 0 making it look like others are claiming your offer in real time.

First add this bit of code in the <body> section of your page.


HTML Code:
<script>

var timer;
function startCount()
{
    timer = setInterval(count, 100); // 200 = 200ms delay between counter changes. Lower num = faster, Bigger = slower.
}
function count()
{
    var do_wait = Math.ceil(4*Math.random()); 
    if (do_wait == 4) { 
        var rand_no = Math.ceil(25*Math.random()); // 9 = random decrement amount. Counter will decrease anywhere from 1 - 9.
        var el = document.getElementById('counter');
        var currentNumber = parseFloat(el.innerHTML);
        var newNumber = currentNumber - rand_no;
        if (newNumber > 0) {
            el.innerHTML = newNumber;
        } else {
            el.innerHTML = '<font color="red">Closed</font>';  // This message is displayed when the counter reaches zero.
        }
    }
}
startCount();
</script>
Feel free to change the setting however you see fit.

Currently the code is setup to count down randomly until it hits 0.

Once it does it will then say Closed in red.

Next you need to add your actual number you would like to count down.


HTML Code:
<div id="counter">772</div>
The above code will start from the number 772 and count down pretty quickly.

9 Actionable Best Ways To Increase Your ROI With Code
#actionable #code #increase #roi #ways

Trending Topics