When you try to track custom attribute data, you may see the ‘userGuiding’ is not defined error in the console.

It is because the ‘userGuiding’ object is not defined to window before the embed code finishes loading.

In such cases, you can set your function to ‘window.onUserGuidingLoad’ in order UserGuiding code to execute this function when the embed code is done loading.

Example:

If you like to learn more about executing your functions, check this article.

 

Did this answer your question?