Daniel Bachhuber

Product Engineer, PostHog

I got a job at Panera Bread once and lasted nine days. Some regional corporate person wanted all of us to follow his directions on how to make sandwiches faster, so I walked into the store manager's office and resigned. I funded my trip to India by selling some camera lenses and a kayak instead.

At PostHog, I'm shipping code with the Experiments Team in our pursuit of making it super easy for developers to analyze the impact of their work. I joined PostHog after years (decades?) in the WordPress space. Some highlights include maintaining WP-CLI, helping author the WordPress REST API, and getting promoted from engineering team lead to Head of WordPress.com (grandma-rides-rollercoaster.gif).

Outside of work, I'm likely working on my pizza game (current favorite: pepperoni, sausage, and ricotta), playing soccer, skiing with my kids, or planning our next family adventure. Leah, my wife, is a nurse practitioner who surprises everyone in Japan with her fluent Japanese. Our kids, Ava and Charlie, play together like two lion cubs and love spending an entire day with their friends in the cul-de-sac.

If you need a book recommendation, some of my all-time favorites include The Winds of War, The Stand, Shoe Dog, Project Hail Mary, and The Big Orange Splot.

Let me know if you're ever in Portland!

  • Dana
    a month ago

    combine no code with code?

    We have several landing pages running on a CMS external to our app (on a subdomain). We'd like to design an experiment that involves testing different price points - this would require a portion of code within our app to modify the price, but we also want to use the no-code approach to display the price on these various external landing pages. Is this possible?

    • Daniel
      a month agoSolution

      Yes, this is totally possible!

      Once you create your no-code web experiment, you can use the feature flag to gate whatever app changes you need to make.

      As long as visitors share the same identifier, PostHog will use the same feature flag variant (and payload data) between the app and the landing pages.

  • Yuri
    4 months ago

    A few questions

    Hey PH team, I've been waiting for this feature for a while! Thank you for rolling this out :)

    I have a couple of questions:

    • Can I somehow limit the no-code experiment to certain URLs? We have an element with the same name on different pages and it seems that launching an experiment will affect all of them, which I don't want.
    • What is the behaviour of HTML/Text/CSS fields? Where exactly are these values being injected?
    • Can I somehow manually point the experiment at a certain element that is not being recognized automatically (kinda how I can add an action for something that Inspect tool is not picking up)? I'd like to hide an entire section with multiple elements for example.
    • Daniel
      3 months agoSolution

      Hey Yuri!

      I've been waiting for this feature for a while! Thank you for rolling this out :)

      You're welcome :) Glad to hear you're excited about it!

      Can I somehow limit the no-code experiment to certain URLs? We have an element with the same name on different pages and it seems that launching an experiment will affect all of them, which I don't want.

      We don't have dedicated UI for this at the moment. If you can apply a specific body class to just those URLs, you could edit the element selector accordingly:

      CleanShot 2024-12-03 at 16.44.53@2x.png

      What is the behaviour of HTML/Text/CSS fields? Where exactly are these values being injected?

      Here's the corresponding code. The HTML field overrides innerHTML, the text field overrides innerText, and the CSS field applies a style attribute.

      Can I somehow manually point the experiment at a certain element that is not being recognized automatically (kinda how I can add an action for something that Inspect tool is not picking up)? I'd like to hide an entire section with multiple elements for example.

      You should be able to use the element selector mentioned in my first response to specify an arbitrary element.

      Hope this helps! Keep the feedback coming :)

  • Alan Ruvalcaba
    4 months ago

    No Experiment type options

    Is this BETA? because i don´t see that Experimentation type (No-Code) when i try "New experiment"

    • Daniel
      4 months agoSolution

      Hey Alan!

      No-code web experiments are available as an opt-in public beta. To enable for your account, head to the "Feature Previews" menu and enable "No Code Web experiments". Once you do, you'll see "Experiment type" under the "Description" field when creating a new experiment:

      CleanShot 2024-11-21 at 09.26.25@2x.png

      Let us know how it works for you!

PostHog.com doesn't use third party cookies - only a single in-house cookie.

No data is sent to a third party.

Ursula von der Leyen, President of the European Commission