Sometimes the most powerful features are the silent ones! Track by Name is a powerful silent feature. It allows you to track those difficult page designs like Single Page Apps (SPAs) or those on-page content changes in single frames or A/B tests served up from the same URL.
The default tracking method for a snapshot is to track using the URL. But in the situations named above, this is not ideal. For example, A/B tests are typically set up to be silently running and served from the same URL. Track by Name solves this problem.
Configure Track by Name on your Snapshots
When you configure your snapshot, go to more settings, and change the tracking option to use Track by Name. This will provide you with the Track by Name code that you will need to place on your source page. You would place this above the one-line Crazy Egg script you added.
< ! - Track a specific Crazy Egg snapshot by name - > <script type="text/javascript"> var CE_SNAPSHOT_NAME = "Variant A"; </script>
The Key to Track By Name - Troubleshooting
There are two reasons why Track by Name might not be working correctly. One reason, the name of your Snapshot does not equal the value of CE_SNAPSHOT_NAME. What you have in between the quotes must be the same as the Snapshot name.
The second reason, you haven't placed the code in the correct location. This is a common mistake when working with SPAs. If you have any trouble, send us an email, and we will set up a call with you to resolve the issue.