Getting started

How to customize Emolytics code for multiple language websites?

You can configure one widget to be visible on multiple language websites. This will allow your visitors to get asked “How do they feel?” in their own language without causing you to have to log into multiple report.

All you need to do is to grab your javascript code in the “install” page as below (go on > configure > insert script on your website), adding the language variable as below ‘var getsmily_lang=”en”;’:

<script type="text/javascript"> var getsmily_id="YOUREMOLYTICSID";var getsmily_lang = "en"; (function(d){var gs=d.createElement("script");var gsf=d.getElementsByTagName("script")[0];gs.async=1;gs.src="";gsf.parentNode.insertBefore(gs,gsf);})(document);</script>

You can then configure the language by changing the value of the variable getsmily_lang to “pt” to get the widget in Portuguese, to “en” for English, “fr” for French, etc. Please also make sure to replace you emolytics ID in this code with the one you find on the “install” page mentioned above.

In your reports, you will see the aggregated results of all your website’s content even if you have 5 languages co-existing on your website

Was this helpful?

Leave A Comment


This website uses cookies to ensure you get the best experience on our website.
Some functionality will be unavailable until cookies are allowed. About cookies