• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Google Content Experiments

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Google Content Experiments

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 3, 2016 at 1:49 pm #190714
    ShmickMick
    Member

    Hi there,

    I'm using Beautiful Pro theme and have almost set up an A/B split-test in my Analytics account. The only thing left to do is add the code that Analytics provided for both of the sales page variations. I went to each page in my WordPress and added the code into the Page-Specific-Script Fields (I was just guessing!). But when I tried to verify in my Analytics account it said that the Content Experiments code had been placed after the Analytics tracking code and that, instead, it should be placed before the Analytics tracking code.

    "Experiment code found after the Google Analytics tracking code:line:88, column:21, line:143, column:1."

    I Googled it and discovered that I need to add the Content Experiments code to the header.php file inside my theme, however only the Genesis parent theme has a header.php file (not the child theme) and, inside the theme settings page, it says not to change that at all.

    Can I put it in the parent theme header.php file no worries?
    If so, where exactly? I mean, any particular line?
    If not, any ideas how I can get it done?

    As I said, I tried Googling but for the life of me can't figure it out 🙁

    Anyway, hopefully someone has an idea!
    Cheers,
    Mick

    https://www.SquashFitnessTips.com/squash-core-foundation/
    August 4, 2016 at 9:20 am #190731
    Victor Font
    Moderator

    You should never edit any Genesis Framework files. The framework provides hooks that you can use to load content. By changing the priority in which a hook loads, you can adjust the before/after loading requirement.

    How are you loading the Google analytics code? I would load the a/b experiment in the same place, but wrap them in conditionals so they load for the specific pages.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble