Home > Technical & Creative Skills > Design - Imagery, Banners & Landers

Recurring error on my ripped landers. (9)


08-06-2017 03:36 AM #1 paras57 (AMC Alumnus)
Recurring error on my ripped landers.

Hi Stackers

I have been having this problem recently after I rip and repair certain landers.
Anyone out there can tell me why this happens or how to prevent or correct it?




Click image for larger version. 

Name:	screenshot LP error-2017-08-05-20-11-26.png 
Views:	67 
Size:	281.8 KB 
ID:	16262

Thanks


08-06-2017 08:35 AM #2 manu_adefy (Veteran Member)

Look in the code for the string "&voluumdata" to see if it's left over there.

If not, check the way you call out parameters in JavaScript, and also look at how you setup the link in Voluum. It looks like you might have a mistake there and instead of calling out something like the user's country, you are calling out the Voluum parameter.


08-06-2017 04:04 PM #3 paras57 (AMC Alumnus)

Hi Manu

Yes when I call out for city using .<script>document.write(getURLParameter('city')); </script> I get Voluum parameter returned to my page. This script is working fine when I call for brand or model but not for city. I tried looking at this page on 2 more devices and it seems that it loads properly there. Strange.

Thank you


08-06-2017 04:18 PM #4 manu_adefy (Veteran Member)

Can you share the code and the URL parameters in the link please? For the link I mean everything after the question mark "?" sign.


08-06-2017 04:49 PM #5 paras57 (AMC Alumnus)

Here is the link
http://xxxxxxx/xxxxd27-c839-4109-xxxxa77e3c76ef0?zoneid={zoneid}&campaignid={campai gnid}&visitor_id=${SUBID}

and here is the url afterwards


http://xxxxxxxxxxxxxxxxxxx/?model=Desktop&city=&voluumdata=BASE64dmlkLi4wMDAw MDAwNy0zZTJkLTQ3OWEtODAwMC0wMDAwMDAwMDAwMDBfX3ZwaW QuLjRjZGRjMDAwLTdhYzAtMTFlNy04ZTBjLTMzMDQ3NTlmNWQ1 NV9fY2FpZC4uYTRhYzVkMjctYzgzOS00MTA5LWIyNWQtOWE3N2 UzYzc2ZWYwX19ydC4uUl9fbGlkLi43ZTVkYWY0NC03NDFmLTRi OGMtODQ0Yy01OTcwNmIyOWNiZDZfX29pZDEuLjI5NGYwMWQ2LW M2ZmYtNDU1My1iNjI3LThhNzBhNjk5M2RmZV9fdmFyMS4ue3pv bmVpZH1fX3ZhcjIuLntjYW1wYWlnbmlkfV9fcmQuLl9fYWlkLi 5fX2FiLi5fX3NpZC4uX19jcmkuLl9fcHViLi5fX2RpZC4uX19k aXQuLl9fcGlkLi5fX2l0Li5fX3Z0Li4xNTAyMDM3MTQ2NTc2&z oneid={zoneid}&campaignid={campaignid}&visitor_id= ${SUBID}


the code for calling

<div class="hide-all">
<div id="fbalert"> <font ;="" color="#3b5998" size="3"> <center> <strong> <p> Anda telah dipilih untuk kesempatan untuk memenangkan sebuah iPhone baru 7 dan hadiah lainnya! </p> </strong> <font ;="" color="#3b5998" size="2"> <p> Setiap <script language="Javascript">document.write(dayarray[mydate.getDay()]);</script> kita pilih pengguna <script>document.write(getURLParameter('model')) </script> beruntung di <script>document.write(getURLParameter('city')); </script>. Anda memenuhi syarat untuk satu putaran pada roda beruntung. </p></font> </center>
</font>

Thank you Manu


08-06-2017 05:15 PM #6 manu_adefy (Veteran Member)

Hey Paras,

I mean the lander link

By the looks of it, you are not adding the right URL token from Voluum, like {city}.


08-06-2017 05:21 PM #7 paras57 (AMC Alumnus)

Sorry....here is the lander link

http://xxxxxx.com/ixxxxxx?model={model}&city={city}


Thanks


08-06-2017 05:53 PM #8 manu_adefy (Veteran Member)

Hmmm - by the looks of it, you could be just using a browser or ISP for which Voluum cannot detect the city so it leaves it open.

You should add a case for when a variable is null and replace it with something, so you don't show this sort of error to your users.

Here you could always say something like:

var city = getURLParameter('city');
if (city == null) city = "your city";

Then you would use document.write(city) in the code, instead of calling getURLParameter again.


08-06-2017 06:03 PM #9 paras57 (AMC Alumnus)

Thank you Manu

That is very helpful


Home > Technical & Creative Skills > Design - Imagery, Banners & Landers