Check Installation Failed: Track By Name Mismatch

One of the Failed messages that you can receive when you choose to check your Crazy Egg installation is the Track by Name Mismatch error.  

Why does this happen?

When a Snapshot is using the  Track by Name tracking method, the Track by Name code is based on the title used for the Snapshot, and the name must be an exact match.

The steps outlined in this article will help you straighten things out.

Note: This WILL NOT apply to any Snapshots of our in-house A/B Test Variants. If you're using Crazy Egg to A/B test your pages and you selected the check box to create Snapshots of your variants, then we will automatically set up tracking for you. 

Locating Your Correct Track by Name variable

If you ever need to access the Track by Name variable for any Snapshot you can do so by clicking on  Edit This Snapshot under the gear icon to the right of each Snapshot. Once in the Edit mode, you can click on the second step titled "Settings" to access the bottom of the page.

Solving the Error

All you would need to do to solve this error is to ensure that the correct Track by Name variable is installed on the correct page. You can do this by simply pasting the variable above the Crazy Egg tracking script already installed on your site. 


< - ! Track a specific Crazy Egg snapshot by name - >
<script type="text/javascript">
    var CE_SNAPSHOT_NAME = "Variant A";

<script type="text/javascript">
setTimeout(function(){var a=document.createElement("script");
var b=document.getElementsByTagName("script")[0];
a.src=document.location.protocol+"//"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);

Still need help? Contact Us Contact Us