A/B test using iframes is tracking users that aren't in the funnel
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?
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?
Sr. Technical Support Engineer
Optimizely | EMEA
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:
The goal is a pageview on:
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;');
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.