Rich-text Reply

A/B test using iframes is tracking users that aren't in the funnel

acoleman 07-04-16

A/B test using iframes is tracking users that aren't in the funnel

[ Edited ]

Hi there,

 

We have created an A/B test that is tracking goals on www.domain.com and after log in to www.subdomain.com we load iframes e.g. www.domain.com/conversion, to capture as many conversions as possible, avoiding third party cookie issues that wouldn't allow us to capture all of these visitors over both domains.

 

Everything seems to be tracking well except the subscriptions goal. It appears to be counting most of the subscriptions we have had since the test went live, despite the fact the users actually signed up previous to the A/B test, hence couldn't have been in the funnel. The iframe is only called once the subscription has been successfully completed.

 

Has anyone else had this issue?

 

Thanks, Alice.

Level 1

AllisonR 07-05-16
 

Re: A/B test using iframes is tracking users that aren't in the funnel

Hi Alice,

 

How is the subscriptions goal being tracked? What kind of goal are you using? Can you let me know how I can go through the funnel on my end to troubleshoot the way this has been set up? 

 

Thanks,

Allison
Sr. Technical Support Engineer
Optimizely | EMEA
Optimizely
acoleman 07-06-16
 

Re: A/B test using iframes is tracking users that aren't in the funnel

Hi Allison,

Thanks for your reply! In order to be in the funnel you would have to sign-up and then subscribe. If you wanted to do that I could refund you automatically, sorry we can't run test cards through the live site.

The Optimizely code on www.focusboosterapp.com is:

<script src="https://cdn.optimizely.com/js/2430690194.js"></script>

The goal is a pageview on:

https://www.focusboosterapp.com/conversion/subscribe

The code being executed on the subscription page on the subdomain is:

JS (after payment is successful)

var conversioniFrame = document.createElement('iframe');
conversioniFrame.setAttribute('src', window.wwwDomain + '/conversion/subscribe');
conversioniFrame.setAttribute('style', 'display: none;');

angular.element('body')[0].appendChild(conversioniFrame);

We have the same set up for a sign-up complete - which triggers a pageview on https://www.focusboosterapp.com/conversion/sign-up once someone is automatically logged in to the app after they complete the sign-up form. The iframe is called automatically with the page load.

In the subscription instance it seems like some people who signed up before the test, so shouldn't be in the funnel, are triggering the event (I can see they signed-up well before the test even started).

Let me know if you need anything else or if any of this doesn't make sense.

Thanks,
Alice Smiley Happy
Level 1