Truncate the error messages through JS extension

Srinivasan
Super Contributor
Srinivasan Super 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

Srinivasan
Super Contributor
Srinivasan Super Contributor
@kathleen

Could you please help me on this.

Truncate the error messages through JS extension

kathleen_jo
Employee Emeritus
kathleen_jo

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

Tealium Employee

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

Srinivasan
Super Contributor
Srinivasan Super Contributor
@kathleen @marchi-lau

Thank you so much :) Appreciate your prompt response!