Track by Name Mismatch

Are you seeing a message in the Check Crazy Egg Script Installation Check: “Track by Name Mismatch”? Maybe you see something like this:

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.


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. 

Example:

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

<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);
</script>
Support article

Was this article helpful?

Thank you! Your feedback is important to us.

Your feedback is greatly appreciated!

Support helper

Need more help?

Contact Support

We're standing by to give you a hand.