1

I've got an A/B Test set up in Adobe Test-and-Target. The idea is that 50% of the time, visitors to a certain page should be redirected to a different page instead. It is working correctly, in that half of users are sent to the new page.

However, sometimes the entire original page is loaded before the redirect happens. I put the mbox in the head tag of the page, which I thought would ensure the redirect happened before any HTML was displayed to the user, but that's not happening.

How can I create a seamless result for the user, where the redirected users only see the new page loading, and never see the original page?

SenorPuerco
  • 871
  • 3
  • 9
  • 19

4 Answers4

0

For our site, the <script src="http://maur.imageg.net/js/mbox.js" ></script>is at the very end of the head tag and works fine.

paulmz
  • 213
  • 8
  • 20
  • Looking a bit deeper, I found this in an HTML Offer: – paulmz Feb 23 '15 at 22:15
  • ` ` – paulmz Feb 23 '15 at 22:16
  • OK, I'm trying to parse this - it is adding a style to the entire page that doesn't allow it to display until everything is loaded, then it removes the CSS that is hiding the page. Is that right? – SenorPuerco Feb 23 '15 at 22:42
  • Correct. (Full disclosure- I did not write this code. Also, in case you didn't notice, I edited out all of the files in the .replaceWith(""); function.) This is the only part of one of our past A/B tests that focuses on the flicker issue. – paulmz Feb 23 '15 at 22:50
0

Your mbox.js should be as close to the top as possible and then your inline mbox should be defined preferably right after the tag. This way the request is made before the content starts to render, and the redirect kicks in before the guest even sees the page.

dorgan
  • 135
  • 1
  • 10
0

Avoid using anything post DOM related for example jQuery's:

document.ready( function{});

If you paste your code you're using for the A/B - we be able to review & respond accordingly.

However pure Javascript and pure CSS should execute seamlessly.

Mike Van Stan
  • 396
  • 4
  • 17
0

You can use CSS first to not show anything

<style>
  body {display:none!important}
</style>

Then use JavaScript to redirect the page to new page.

Skatox
  • 4,237
  • 12
  • 42
  • 47