Mobile(ogads)/Desktop(cpabuild) Locker Redirection

nabilox

Registered Member
Joined
Jan 12, 2018
Messages
86
Reaction score
21
Hi ! hope all is well ! please i want to use a cpabuild for desktop traffic and ogads for mobile traffic ! but i struggle to embed two contentlocker in same landing page !

i have used this code :

<script>
var isMobile = /iPhone|iPad|iPod|Android|WebOS|iOS/i.test(navigator.userAgent);
if(isMobile){
window.location = "ogads_content_locker_url";
}else{
window.location = "cpabuild_content_locker_url";
}
</script>

but it's make my LP reflesh itself, please can you help me in this issue
Thanks in advance
 
Back
Top