• I followed the directions in the help pages for this plugin, and when I view the page in different browsers, I see the variations as expected.

    However, when I visit the experiments area of Google Analytics, no data is showing up. I completed a test conversion – one for each variation – but neither the page views nor the conversions are showing up in Google Analytics for that day.

    I checked, and the GA code is properly installed on the page I’m testing as well as the conversion thank you page.

    Do you have any suggestions on what I can check to get this working?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kellyjholmes

    (@kellyjholmes)

    For what it’s worth, I added this bit of code from Google’s client-side guide to the head section for the page I’m testing:

    <!-- Load the Content Experiment JavaScript API client for the experiment -->
    <script src="//www.google-analytics.com/cx/api.js?experiment=YOUR_EXPERIMENT_ID"></script>
    
    <script>
      // Ask Google Analytics which variation to show the user.
      var chosenVariation = cxApi.chooseVariation();
    </script>

    I didn’t get the impression that was necessary from the plugin documentation, but I am now seeing data in GA from the experiment. Was adding that code the correct step to take?

    Plugin Contributor firebrandllc

    (@firebrandllc)

    Sorry for the delay in responding.
    Thanksgiving holiday here in the US.

    Thanks for the bug report, Kellyjholmes.

    The plugin should be including the cxApi.chooseVariation() call. So there’s something wrong here.
    Hrm… actually quite confusing since the plugin uses that call to determine which variation to display. If you saw more than the first variation, then it was getting a value from that function.

    One way to see if the plugin is working is to check your Real-Time events (Real-Time:Events) in Google Analytics. We fire events of category “Simple Experiment” with an action of “select” when the plugin selects and displays a variation.

    • Are you running Google Tag Manager?
    • How is your Analytics being set up (coded into theme, plugin, Tag Manager?
    • Could you share the URL of your site so I can take a look at what the plugin is generating?

    Thanks

    • This reply was modified 8 years, 3 months ago by firebrandllc.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No data showing up in Google Analytics’ is closed to new replies.