Tracking Pages By Name for A/B Testing

The default tracking method for a snapshot is to track using the URL; this is not ideal for A/B tests because different variants/test pages can be served from the same URL. Track by Name solves this problem. When tracking by name, we will determine which page to track based on the Track by Name code instead of the URL.

Snapshot Setup
A snapshot must be added for each variant you'd like to track.
  1. Add a new snapshot using the direct variant URL
  2. Set the snapshot to Track by Name under Advanced Options
  3. The Track by Name code that is presented will need to be placed on the variant page before the standard Crazy Egg tracking script, example below.
< ! - Track a specific Crazy Egg snapshot by name - >
<script type="text/javascript">
    var CE_SNAPSHOT_NAME = "Variant A";
</script>

<script type="text/javascript" src="//script.crazyegg.com/pages/scripts/0000/0000.js" async="async"></script>
	

Still need help? Contact Us Contact Us