Truncate the error messages through JS extension

Gold Contributor
Gold Contributor

Could anyone can help me how to truncate the error message from 400 to 150 characters in Google Analytics events through JS extension

 

Appreciate your help!

4 REPLIES 4

Truncate the error messages through JS extension

Gold Contributor
Gold Contributor
@kathleen

Could you please help me on this.

Truncate the error messages through JS extension

Employee Emeritus

Of course @Srinivasan. Let me see if I can find someone. 

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.

Truncate the error messages through JS extension

Employee Emeritus

Is the error message being passed through a data layer item? If yes, you can then truncate with a set data value extension and reset the value base on the javascript truncated value. Please checkout the screenshot as attached.

Thanks.

Truncate the error messages through JS extension

Gold Contributor
Gold Contributor
@kathleen @marchi-lau

Thank you so much :) Appreciate your prompt response!
Public