Home >
Technical & Creative Skills >
Programming, Servers & Scripts
Some problems about code (16)
06-02-2018 11:43 AM
#1
j80montes (AMC Alumnus)
Some problems about code
Hello everyone.
I've ripped some landers from Adeplexity.And I met some problems can't be solve.
Code:
<a class="cta clearfix" href="http://www.crazybuydeals.com/Affiliate%20Marketing/Mobile/Campaign%20(H)/Poky%20Style%20Lander/* http://lentalign-stables.com/click/1" onclick="alert('Congratulations!\nYou will now be redirected to our partner. Fill out the form on the next page and claim your spot on the drawing!\n');PreventExitPop = false">
In the code above,I have replaced the tracking link.But I can't understand what is the function of first link and should I replace I with other?Furthermore,is there a link and what should i deal with it?
Code:
<a href="https://thaidapps.com/?track=aHR0cDovL29mZmVybGluay5jby8_YT00ODgmb2M9MjM0MjgmYz01MTIwOSZtPTcmczE9MTQ3Mjg3NCZzMj00ODEwNjU5MTYxMzc&meta-id=MTc1MjU2&z=1472874&s=481065916137&brandSafe=0&rsz=1472874&cd_meta_crid=17457&meta-tracking-id=275299&svar=1527548138.4032&ssk=5db4376dd54faaf31eae6bb0552eae6f&b=1910433&g=AU" class="motivating-element-notij-que motivating-element_right-bottom" id="motivating-element-notij-que">
06-02-2018 09:10 PM
#2
thedudeabides (Moderator)

Originally Posted by
j80montes
Code:
<a class="cta clearfix" href="http://www.crazybuydeals.com/Affiliate%20Marketing/Mobile/Campaign%20(H)/Poky%20Style%20Lander/* http://lentalign-stables.com/click/1" onclick="alert('Congratulations!\nYou will now be redirected to our partner. Fill out the form on the next page and claim your spot on the drawing!\n');PreventExitPop = false">
'onclick' is what it sounds like, and alert is a browser alert that triggers with that text. You should be able to see that happen when you test the page.
PreventExitPop = false is setting a variable equal to false, and presumably there is another piece of code on the page that checks for PreventExitPop's value to decide whether to trigger another browser alert when users leave or exit the page.

Originally Posted by
j80montes
Code:
<a href="https://thaidapps.com/?track=aHR0cDovL29mZmVybGluay5jby8_YT00ODgmb2M9MjM0MjgmYz01MTIwOSZtPTcmczE9MTQ3Mjg3NCZzMj00ODEwNjU5MTYxMzc&meta-id=MTc1MjU2&z=1472874&s=481065916137&brandSafe=0&rsz=1472874&cd_meta_crid=17457&meta-tracking-id=275299&svar=1527548138.4032&ssk=5db4376dd54faaf31eae6bb0552eae6f&b=1910433&g=AU" class="motivating-element-notij-que motivating-element_right-bottom" id="motivating-element-notij-que">
Just replace the link in the href= with your own and you should be good. 'class' and 'id' are just style elements.
06-03-2018 12:41 PM
#3
j80montes (AMC Alumnus)

Originally Posted by
thedudeabides
'onclick' is what it sounds like, and alert is a browser alert that triggers with that text. You should be able to see that happen when you test the page.
PreventExitPop = false is setting a variable equal to false, and presumably there is another piece of code on the page that checks for PreventExitPop's value to decide whether to trigger another browser alert when users leave or exit the page.
Just replace the link in the href= with your own and you should be good. 'class' and 'id' are just style elements.
Hi,thedudeabides
Thanks for you help.I can't reach that type's links.So I want to know is it something hosted in the previous sever?And will I be redirect if I leave that links.
06-03-2018 09:12 PM
#4
thedudeabides (Moderator)
Sounds like there's a piece of javascript code inserting or replacing links? I'd really need more information to help.
06-04-2018 03:35 AM
#5
j80montes (AMC Alumnus)
Hi
In this code,I can't browser it as usual.So can I just replace to my tracking link?And I found that some links what I can't browser,there will be a &
<div class="list-group">
<a href="http://adserver.dfsites.com.br/3964fa2c-3c5a-44fb-8882-671fddc15eed?websiteid=[WEBSITEID]&quality=[QUALITY]&categoryid=[CATEGORYID]&DEVICENAME=[DEVICENAME]&formfactorname=[FORMFACTORNAME]&campaignid=[CAMPAIGNID]&ISPNAME=[ISPNAME]&screenresolution=[SCREENRESOLUTION]&impressionid=[IMPRESSIONID]&OSNAME=[OSNAME]&bid=[BID]&impressionId={impressionId}" class="btn" id="claim-btn">CLAIM YOURS NOW ! >>></a>
</div><!-- Close List Group -->
</div><!-- Close Results -->
</div>
<footer class="footer" id="terms">
<div class="wrapper">
<strong>Copyright 2017 - All Rights Reserved.</strong>
<div class="footer_links"></div>
This Survey is an Advertisement. Your privacy is important to us. We do not collect your personal information in this questionnaire. All brand and/or product names are trademarks of their respective owners. No browser or ISP has not authored, participated in, or in any way reviewed this advertisement or authorized it. This website receives compensation for purchase of products featured. Products have important terms and conditions, please read all products terms and conditions before ordering any product.
</div>
</footer>
</div> <!-- container-->
<!-- Modal -->
<div class="modal" id="modal-2" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-header">
<h2></h2>
<a href="http://adserver.dfsites.com.br/3964fa2c-3c5a-44fb-8882-671fddc15eed?websiteid=[WEBSITEID]&quality=[QUALITY]&categoryid=[CATEGORYID]&DEVICENAME=[DEVICENAME]&formfactorname=[FORMFACTORNAME]&campaignid=[CAMPAIGNID]&ISPNAME=[ISPNAME]&screenresolution=[SCREENRESOLUTION]&impressionid=[IMPRESSIONID]&OSNAME=[OSNAME]&bid=[BID]&impressionId={impressionId}" class="btn-close" id="btn-close" aria-hidden="true">×</a>
</div>
Next is a screenshot of that lander.
06-04-2018 03:48 AM
#6
thedudeabides (Moderator)
Just replace everything inside the href="" part with your own tracking link for landing pages, double-check that everything works fine, and you should be good to go.
06-04-2018 01:11 PM
#7
j80montes (AMC Alumnus)
Thanks again
06-16-2018 03:46 AM
#8
j80montes (AMC Alumnus)
Hi,
Is there a sneaky redirects?
<script type="text/javascript">
!function(e,n,o){var t={},i=function(e){try{var n=decodeURIComponent((new RegExp("[?|&]"+e+"=([^&#]+?)(&|#|$)").exec(o.location.search)||["",""])[1].replace(/\+/g,"%20"));return""==n&&"undefined"!=typeof arguments[1]?arguments[1]:n}catch(t){return"undefined"!=typeof arguments[1]?arguments[1]:""}},r="http://timaptrack.com",a="20z485hz3z0",c="5e6a3427605875e e814b6b7992f2de98",p=0,d=function(e){o.write(e)},f =function(e){var n=o.createElement("img"),i="img_"+(new Date).getTime();t[i]=n,n.onload=n.onerror=function(){t[i]=n=n.onload=n.onerror=null,delete t[i]},n.src=e+"&t="+Math.random()},m=function(e){if("o bject"!=typeof e)return!1;var n="";for(var o in e)"undefined"!=typeof e[o]&&(n+="&"+o+"="+encodeURIComponent(e[o]));f(r+"/lib/ajax/campdata.php?c="+a+"&k="+c+n)},u={saveCampToken:m, echo:d,getToken:i};e.PK=u;var g=(new Date).getTime();f(r+"/ctrack.php?c="+a+"&k="+c+"&sr="+(n.screen.width||0 )+"_"+(n.screen.height||0)),n.onload=function(){va r e=(new Date).getTime()-g,o=0;"undefined"!=typeof n.performance&&"undefined"!=typeof n.performance.timing&&(o=n.performance.timing.doma inLookupEnd-n.performance.timing.domainLookupStart),f(r+"/lib/ajax/lp_timing.php?c="+a+"&k="+c+"&d="+encodeURICompone nt(e+"_"+o)),p>0&&setTimeout(function(){f(r+"/lib/ajax/lp_engage.php?c="+a+"&k="+c)},p)}}(this,window,doc ument);
</script>
06-16-2018 04:16 AM
#9
erikgyepes (Moderator)
You can paste the code to http://jsbeautifier.org/, it will make it easier to read.
I would remove this code from LP.
Looks like it's from some tracker and it's calling back to it / measuring some stuff.
06-16-2018 08:18 AM
#10
j80montes (AMC Alumnus)

Originally Posted by
erikgyepes
You can paste the code to
http://jsbeautifier.org/, it will make it easier to read.
I would remove this code from LP.
Looks like it's from some tracker and it's calling back to it / measuring some stuff.
Thank you.That's really amazing. I've removed this code and found the LP is normal.By the way,is the script below will automatically get visitors' brands and GEO and replace the old parameters?I opened the LPs in computer so I could't see any change of brands and GEO.
<div class="intro">Every <span id="today">Thursday</span> we randomly select 5 lucky <script>document.write(getURLParameter('brand')) </script>Huawei visitors in <b><script>document.write(getURLParameter('country _name'))</script>Australia</b> to receive an exclusive prize from our sponsors. Spin the wheel to find out what prize you could win!</div>
And below is a partial screenshot of LP.
06-16-2018 11:53 AM
#11
twinaxe (Senior Moderator)

Originally Posted by
j80montes
By the way,is the script below will automatically get visitors' brands and GEO and replace the old parameters?I opened the LPs in computer so I could't see any change of brands and GEO.
When I get you right then you still see Thursday, Huawei and Australia on the lander.
In the code you posted the values like Thursday and Huawei are still in the source code.
That´s why they are still shown on the lander.
To see the script in action delete the values from the source code, open the landing page and attach &brand=Whateverbrand&country_name=Whatevercount ry to the URL.
The Thursday you can just delete and the actual date will be inserted by the JS function.
06-16-2018 02:53 PM
#12
j80montes (AMC Alumnus)

Originally Posted by
twinaxe
To see the script in action delete the values from the source code, open the landing page and attach &brand=Whateverbrand&country_name=Whatevercount ry to the URL.
Thanks for your reply.And is it wrong for my understanding. I've added &brand=Whateverbrand&country_name=Whatevercount ry to my LP URL.
https://s3.us-east-2.amazonaws.com/e...hatevercountryBut…
06-16-2018 02:58 PM
#13
twinaxe (Senior Moderator)

Originally Posted by
j80montes
Sorry, I just checked your URL.
I assumed that you already have added parameters to it, then my reply above would be correct.
But the first parameter right after the index.html must be added with a "?" instead of "&".
Try this one ?brand=Whateverbrand&country_name=Whatevercountry
06-17-2018 07:24 AM
#14
j80montes (AMC Alumnus)

Originally Posted by
twinaxe
Sorry, I just checked your URL.
I assumed that you already have added parameters to it, then my reply above would be correct.
But the first parameter right after the index.html must be added with a "?" instead of "&".
Try this one ?brand=Whateverbrand&country_name=Whatevercountry
Hi,
I've add that to my landing page URL.There is a screenshot.

.And I just need to delete the values from the source code and add ?brand=Whateverbrand&country_name=Whatevercountry to my landing page URL if I want visitors' brand and country appearing in the LP?Sorry for my poor English.
06-17-2018 08:04 AM
#15
erikgyepes (Moderator)
Yes that's correct.
Now instead of writing the word WhatEverBrand statically you enter a placeholder (token) from your tracker. Something like {brand}. You will see all available tokens in your tracker when you will be adding landing pages. This way tracker will detect the brand/country etc. and replace it for you with the correct value automatically.
06-18-2018 02:02 AM
#16
j80montes (AMC Alumnus)
Thanks for your help.
Home >
Technical & Creative Skills >
Programming, Servers & Scripts