5

We have a .NET web application using DXA 1.7 and SDL Web 8.5, we have configured XO and we're having trouble with the "Views" counter in experiments. The "Conversions" counter is working fine but the "Views" counter is always 0.

enter image description here

Anyone knows how SmartTarget updates the views counter in experiments?

  • I can only assume this is data from Google Analytics, just as it is for conversions... (I know, not a real answer). – Nuno Linhares Nov 28 '17 at 10:21
  • Are you using the provided controls or your own, to query for the experiments on your website? – Peter Kjaer Nov 28 '17 at 11:08
  • Also, are you using the in-process assemblies or the new OData ones? – Peter Kjaer Nov 28 '17 at 11:11
  • We're not using the in-process assembies, we're using the new ones – David Rodriguez Nov 28 '17 at 12:07
3

Finally found that the error in the views counter was an error in the Experience Optimization DXA module.

SDL support confirmed it, and to fix the problem, a hotfix will be released on January 2018.

6

The short answer is that it is done automatically by the Query control. So when the Experiment is rendered, a view will be tracked. The tracking is done through the AnalyticsManager which in turn uses a configurable provider to do the tracking and retrieval of data. A default Google Analytics provider is given out-of-the-box.

If you are using the API directly instead of the controls, you will need to track the view yourself, by calling the TrackView method on an AnalyticsManager instance.

  • Hi Peter, we're not using the API directly and the tracking isn't working, I've tried to configure it in the DXA Example Site with same result. Number of views doesn't work, the google analytics event for tracking views isn't been created in the Google Analytics account. – David Rodriguez Nov 30 '17 at 12:57
  • We might need to solve this through Support, in that case. It could be that you are missing some configuration in GA or that Google changed something that broke it. Either way, we're probably not going to be able to solve it in these comments. – Peter Kjaer Dec 1 '17 at 12:10
  • Ok, thank you Peter! We already have a ticket opened (00318212) – David Rodriguez Dec 4 '17 at 8:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.