You can now add your own custom tags to recordings!
For adding tags, you will use the CE2.addTag('<tag_name>')
. If you wanted to add a tag of signups, for example, you would use CE2.addTag('Signed Up')
If there is a current session being recorded, the system will add the tag by how you identify which ones to add.
You can add multiple tags at the same time, as well. CE2.addTag(['Signed Up', 'Pro Plan'])
. This will add two separate tags, one called Signed Up
and one called Pro Plan
.
When using this, you would add this inside the CE_READY
function.
window.CE_READY
As soon as Crazy Egg is initialized, it calls the Javascript function CE_READY if it has been defined. Like the above examples, you should define a function named CE_READY and put your custom Crazy Egg code inside. This ensures that your code does not try to use the CE2 object before it has been defined, which would cause errors that would prevent your custom variables from being tracked.
window.CE_READY = function () {
CE2.addTag('<tag_name>')
};