Track by Name

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 go to 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.

< ! - 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>
	

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.   

Other Important Information

Have an A/B Test page you want to create Snapshots for?  Are they being served up from the same URL?  Have a look at this article.

Single Page Applications or Content that changes on the page but the URL stays the same, can be tricky to track.  But here is a dedicated article to help you set up a Snapshot to track this information.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us