New mobile redirection script



Show first post

54 replies

Thanks for the quick replay Quinn and for pointing that out.

I made all the necessary adjustments but unfortunately it’s still not working.

This is a screenshot or the “pages” showing all 4 landing pages so you can see the URLs.

This is a screenshot of the script on “credit-repair-affiliates” so you can see the URL I’m forwarding to…

This is a screenshot of the script on “credit-repair-evaluation” so you can see the URL I’m forwarding to here…

I really appreciate your time Quinn. I hope you can shed some light on this for me.

Userlevel 3
Badge +1

Hey Mark, it looks like for the Credit Repair Affiliates Mobile URL is spelled correctly in your script, but the actual URL has a typo: http://unbouncepages.com/credit-repair-affilates-mobile/

If you go to the Page Overview of the mobile page, you can change the URL and correct “affilates” to “affiliates” and it should be good to go.

The Credit Repair Evaluation is working correctly for me, so if you’re still seeing issues, you may need to clear your cache.

Your awesome Quinn.
Thanks for repeating yourself.
I guess I was too tired to understand you the first time ;-).
Works perfectly now. Thanks a million!

Userlevel 3
Badge +1

Glad I could help, Mark. Cheers!

Hello,
we use the script with a 3 page solution. One page for redirect to desktop or mobile.
I got now the information that the redirect is not working in some cases.
One case are Lenovo Tablet with android system - the stock at the redirect page.
We loose conversions now - please try to help us quick!

regards

Userlevel 2

Hi Wilhelm. Please check your email Ð I replied to your ticket a little earlier.

For the benefit of everyone else: the scripts in this post won’t treat tablets as ‘mobile’ devices because they typically have screen resolutions comparable with desktops. For more background, see my reply above:

Will you please run down the street with balloons and confetti announcing this feature to the world and tagging me @prestonbates on twitter when you launch? Thanks in advance. One love

The UnBounce script goes above the Google Universal Analytics snippet in the Head, right?

Another question…with this “three-page-solution,” thinking of the funnel, how should we structure our parent page in contrast to the mobile - desktop children? Is the parent page just a copy of either the desktop or mobile?

Hi Preston!

You got it, you’ll want to put the Unbounce script Mark references in the Head of the JavaScript manager. Then click “Done” and “Add” to separate the Google Universal Analytics snippet.

I’ve also tagged your account so you’ll be amongst the first to know when we’re ready to roll out Responsive Beta. And yes, I promise we’ll notify you with balloons and confetti.

Have you guys figured out how to automate this yet within unbounce? It would seem easy enough to just have a setting on your primary landing page that allows you to indentify the mobile version you would like displayed for mobile devises. If both landing pages are in unbounce it seems there should be a way to link them and eliminate the step of having us create the script. Is this in the works or been done yet?

Userlevel 3
Badge +1

Hi Greg - we haven’t worked on automatically adding the mobile redirection script to the app, but that’s because we’ve been working on responsive pages instead, which will allow you to have a desktop and mobile view for each page that will display automatically depending on a visitor’s browser viewport. We’re in Alpha testing right now, but we’re getting ready to move into a full beta soon. I’ve tagged your account so you’ll be amongst the first to know when that happens.

Thanks for this!
Just updated. As a side thing, any recommendation on how I could frame this in Google Analytics so it understands that mainpage directs to desktoppage or mobilepage?

Hey Mark

If you wanted to follow the flow in GA from the redirect page to the desktop/mobile page then I would place the GA tracking code on your redirect page as well. Be sure to place it before your redirect script.

Keep in mind that there’s still a risk that the redirect will happen before the tracking script has fully executed.

Userlevel 3

Hey Mark

If you wanted to follow the flow in GA from the redirect page to the desktop/mobile page then I would place the GA tracking code on your redirect page as well. Be sure to place it before your redirect script.

Keep in mind that there’s still a risk that the redirect will happen before the tracking script has fully executed.

Sure, some parralax backgrounds don’t work well on iPad with the way they are coded for unbounce. The parralax background either zooms right in and locks itself or stays static. Whereas it looks great on desktop, so I was trying to make two versions for better UX.

Hi Johnny, any way to fix it?

I meant for this comment:
“Keep in mind that there’s still a risk that the redirect will happen before the tracking script has fully executed.”

For example, currently, I track referrer data in the form submits. Since the form submit happens from desktop/mobile pages and they send in referrer data - I almost always see the referring URL to be that of the redirection page.

So I was wondering if this script is not fully executing?

Userlevel 3

Hey Mark - You could try to add a callback function to your GA script so that it waits for google to receive the page hit before redirecting.

Replace the following line in your GA code:

ga('send', 'pageview');

with this:

'hitCallback': function() {   
window.location = "http://www.google.com/" + window.location.search.replace(//g,'%20');   
}   
}); ```   
 
swap out '[http://www.google.com/](http://www.google.com/)' with your redirect URL   
 
Also I recommend adding your subdomain to your properties 'referral exclusion list' incase this is a small self referral issue   
 
[https://support.google.com/analytics/...](https://support.google.com/analytics/answer/2795830?hl=en)   
 
Perhaps one of these solutions will fix your referrals.

Hi Johnny,

Thanks for this!
Can’t add referral exclusion because that way I lose attribution to the main site when/if the subdomain forwards traffic over to the main site.

So I’m going to use the GA code. Only question is, I use Google Tag Manager and the container code is plastered all over the place. How do you suggest I add this particular piece of GA code just for the redirector page?

Userlevel 3

Hey Mark - Instead of inserting the GTM code I would go into your GA account property and grab the original analytics tracking code. Be sure to modify it the way I detailed above.

Thanks!

Hi guys,

Does this script include the AdsBot of Google that looks for mobile pages as shown here?

Userlevel 3
Badge +1

Hi Mark - Google AdBot mimics Safari mobile running on iOS, so it should redirect the same way as well.

Reply