Support » Plugin: Simple Content Experiments » Only see 1st Variation – GTM to blame?

  • Resolved jenkinzz

    (@jenkinzz)


    Hey guys, thanks for this great plugin.

    I just set up an experiment, but I’m only seeing the first variation. Here’s the low-down on what I did:

    1) Created the AnalyticsLoaded trigger and associated tag. Code in tag is

    <script>
    if("function" == typeof(content_experiment.run_experiment)){
    content_experiment.run_experiment();
    }
    </script>

    2) Published GTM changes
    3) Used shortcodes in a text widget in sidebar, raw code is below.
    4) Created experiment in GA. Used fake domains in the URLS for variations as per https://developers.google.com/analytics/solutions/experiments-client-side. On the last step where it verifies your experiment codes are set up correctly, I got errors like “Can’t find GA Code” and “Cant find experiment id”. I expected some, because the tutorial says they will fire, but I don’t see those specific ones in the screenshot they provide. Could that be part of the issue? GA is working fine otherwise.

    ‘[experiment id=”ADiKV7xDR_S7vvuo8XloRA”]

    [ex_variant]

    I empower nonprofits to maximize their impact by connecting them with awesome tools.

    Together, we supercharge their fundraising and amplify awareness while spending as little as possible.

    Read on to find ideas, hacks, and full-fledged plans to advance your cause on a shoe-string budget.

    Subscribe via email:

    [activecampaign form=3]
    [/ex_variant]

    [ex_variant]

    I empower nonprofits to maximize their impact by connecting them with awesome tools.

    Together, we supercharge their fundraising and amplify awareness while spending as little as possible.

    Read on to find ideas, hacks, and full-fledged plans to advance your cause on a shoe-string budget.

    Subscribe via email:

    [activecampaign form=3]
    [/ex_variant]

    [ex_variant]

    I empower nonprofits to maximize their impact by connecting them with awesome tools.

    Together, we supercharge their fundraising and amplify awareness while spending as little as possible.

    Read on to find ideas, hacks, and full-fledged plans to advance your cause on a shoe-string budget.

    Subscribe via email:

    [activecampaign form=3]

    Are you eligible for unlimited
    free G Suite accounts?

    Submit this form to see if your nonprofit is eligible for unlimited free G Suite accounts and a $10,000 grant from Google for Nonprofits!

    [activecampaign form=6]

    [/ex_variant]

    [ex_variant]

    I empower nonprofits to maximize their impact by connecting them with awesome tools.

    Together, we supercharge their fundraising and amplify awareness while spending as little as possible.

    Read on to find ideas, hacks, and full-fledged plans to advance your cause on a shoe-string budget.

    Subscribe via email:

    [activecampaign form=3]

    Are you eligible for unlimited
    free G Suite accounts?

    Submit this form to see if your nonprofit is eligible for unlimited free G Suite accounts and a $10,000 grant from Google for Nonprofits!

    [activecampaign form=6]

    [/ex_variant]

    [/experiment]’

    • This topic was modified 6 years, 5 months ago by jenkinzz.
    • This topic was modified 6 years, 5 months ago by jenkinzz. Reason: trying to fix code block

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author lonfirebrand

    (@lonfirebrand)

    Are you testing from multiple browsers or machines?
    Google sets a cookie and assigns the user to a specific variant in a specific experiment.
    I did hit that page from 3 different browsers and got the 1st variant in all three cases.
    Looking at the console log, everything appears to be firing OK, just always getting 0 for chosenVariation.

    Unfortunately, I don’t see the immediate problem.
    GTM has been problematic for client-side experiments for a couple of versions now. (Why we have the little hack to run the experiment.)

    Google is pushing everyone (and GTM users in particular) to Google Optimize.
    It’s actually quite slick. You get a visual editor to build your content variations. If you’re already running GTM, it’s simple to set up and it works in a very similar fashion to GTM.

    If you can’t use Optimize for some reason, let me know and we can try to dig deeper into what’s going in your particular install of the WordPress plugin.

    Thread Starter jenkinzz

    (@jenkinzz)

    Thanks for the quick response and help!

    I just spent a couple hours setting up optimize, and at first seemed to have the same problem. Then I tested with my wife’s phone and it worked! (Optimize, that is.) I was using incognito windows, so I figured that would clear the cookies, but maybe they’re doing it via IP or something? I don’t know.

    Anyways, thanks again for the tip on Optimize, it really is a nice solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only see 1st Variation – GTM to blame?’ is closed to new replies.