Reply
Super Contributor
Posts: 155
Registered: ‎11-15-2015
Accepted Solution

Truncate the error messages through JS extension

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!

Reply
0 Kudos
Super Contributor
Posts: 155
Registered: ‎11-15-2015

Re: Truncate the error messages through JS extension

@kathleen

Could you please help me on this.
Community Manager
Posts: 970
Registered: ‎08-26-2015

Re: Truncate the error messages through JS extension

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.
Reply
0 Kudos
Tealium Employee
Posts: 5
Registered: ‎12-02-2015

Re: Truncate the error messages through JS extension

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.

Screenshot 2016-08-13 11.22.03.png
Super Contributor
Posts: 155
Registered: ‎11-15-2015

Re: Truncate the error messages through JS extension

@kathleen @marchi-lau

Thank you so much :) Appreciate your prompt response!