GoogleAnalytics event from config to onclick attribute

Hi!
When trying to pass a string from site config inside onclick attribute (onclick="{{ .Site.Params.string }}") it wraps in extra double quotes (onclick="“string”"). Tell me please, how can I solve this problem?

Pipe to the safeJS function or simply remove the quotes from your markup.