The charSet variable is used by Adobe to convert incoming data into UTF-8 for storage and reporting by Analytics. Most sites do not need to set this variable.
Set this variable only if you see garbled values ( mojibake ) in reports. You can set this variable on a page-by-page basis if your site uses different encodings on different pages.
Character Set in Adobe Experience Platform Launch
Character Set is a field under the General accordion when configuring the Adobe Analytics extension.
- Log in to launch.adobe.com using your AdobeID credentials.
- Click the desired property.
- Go to the Extensions tab, then click the Configure button under Adobe Analytics.
- Expand the General accordion, which reveals the Character Set field.
You can use either a preset character set or a custom character set. Avoid changing the value from UTF-8 unless you see garbled values in reports.
s.charSet in AppMeasurement and Launch custom code editor
The charSet variable is a string. If you have garbled values in Adobe Analytics, set this variable to the same value as the <meta charset=""> HTML tag on your site.
s.charSet = "UTF-8";