A/B Testing Error: Track By Name Mismatch

Are you seeing an error message that reads: “Track by Name Mismatch”? 

Why does this happen?

The Track by Name code is based on the title used for the Snapshot, and if the CE_Snapshot_Name variable does not match the name given to the Snapshot, you will see this error.  The two values must be an exact match.

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

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+"//script.crazyegg.com/pages/scripts/0000/0000.js?"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);
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