Server Side

Google Optimize

Running an experiment

SERVER SIDE!

 

  • Create an experiment in Optimize.
  • Set experiment objectives.
  • Set experiment targeting.
  • Create variants.
  • Start the experiment.
  • Get the experiment ID.

Our code must handle:

 

  • Serving content.
  • Experiment inclusion.
  • Variant allocation.
  • Persistence of variants for users.
  • Sending users’ hits (e.g., pageview hits) on the variants to Google Analytics.

Google Optimize Libraries?

 

  • Serving content.
  • Experiment inclusion.
  • Variant allocation.
  • Persistence of variants for users.
  • Sending users’ hits (e.g., pageview hits) on the variants to Google Analytics.

Questions

 

  • How do we handle SSR with variant persistence?

Server SideGoogle Optimize

By Alex Hughes

Server SideGoogle Optimize

  • 230