Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

uSplit test results not being reported back to Google Analytics. #24

Open
pauloya opened this issue Oct 4, 2018 · 3 comments
Open

uSplit test results not being reported back to Google Analytics. #24

pauloya opened this issue Oct 4, 2018 · 3 comments

Comments

@pauloya
Copy link

pauloya commented Oct 4, 2018

Hi,
We have a problem that uSplit is not reporting experiment results back to Google Analytics.
When clearing cookies and refreshing the tested site we see all the variations being shown properly, we see the activity on the said site in Real-Time -> Overview tab of Google Analytics.
We downloaded the repository and debugged it and we see that in function OnResultExecuted of class VariationReportingActionFilterAttribute, variationReported is being set as true but in the experiment view in Google Analytics -> Behavior -> Experiments we don't see any activity and my Experiment Session count is sitting at 0.
We dont see any errors in the logs as well.

Some additional info (No idea if that is relevant):

  • We debugged this on my local machine that is not accessible from outside.
  • Tried this on live site that is accessible from internet and still did not work. (Should be noted that the live site is deployed with Umbraco Flexible load balancing, and we went to each node and authorised them one by one using their internal node URL’s which are different than the external URL.)
  • At the bottom of Google experiment site cannot see the variations and get following error:
    Experiment Code Validation
    PAGEA: Sorry – there’s a problem on our end.
    PAGEB - 7a11e899-xxxxxxx-xxxxx: Sorry – there’s a problem on our end.
    Note : "If you're sure the pages are properly set up, you can still start the experiment."

Our flow of creating an experiment:
Click "A/B Testing" -> "Create a new experiment" -> Go to experiments page -> "Clone original" to the same folder as original -> Change the variation -> Save and publish it -> Go to Google Analytics/Behavior/Experiments -> Click the experiment -> Set up the Metric -> Click "Save for later" -> Go back to Umbraco and Start the experiment

@ondrejpialek
Copy link
Member

Hi @pauloya, sounds like the reporting to GA is not working as it should. Do you see experiments listed in the Tree in the bacoffice? Are they started? If so how is your "reporting of variations to google" setup?

This is usually a piece of JS that tells Google that an experiment was run. This is not reported on the server side but on the client side and this code needs to be compatible with how you have GA setup on your website. uSplit offers a number of methods to report the variation - which one are you using? Have you tried any of the other ones?

@alikazai
Copy link

alikazai commented Aug 1, 2019

Hi I'm having the same issue. the google api is working and its creating the experiment however no data is being collected. also when i look into the source code for the page there is no tracking data being inserted in the page.
thanks

@alikazai
Copy link

alikazai commented Aug 2, 2019

Also i have now fully tested the other variations @Html.AbTesting.AnalyticsJsScriptTag() & @Html.AbTesting.CxApiScriptTags() as well as making sure the analytics.js file is in the header. all of which does not help google analytics track the data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants