Open travisLilleberg opened 7 years ago
For the time being, I've overwrote
ga('create', <%= Spotlight::Engine.config.ga_web_property_id.to_json %>, 'auto');
to
ga('create', <%= Spotlight::Engine.config.ga_web_property_id.to_json.html_safe %>, 'auto');
in _analytics.html.erb.
I've set up google analytics as and the dashboard page is working, but the javascript snippet is not being rendered correctly in the application.
In the console I'm getting
(index):396 Uncaught SyntaxError: Unexpected token &
, and when I click through to the line in question it appears to be incorrectly encoded:ga('create', "my-property-id", 'auto');
My initializer is like so:
And the secrets file on my prod is:
I've tried removing the quotes from the value in secrets.yml, clearing caches and restarting but the problem remains. Do I have this set up incorrectly?
Thanks for any help,
-- Travis Lilleberg
EDIT: Forgot to mention I'm on Spotlight v0.30.0 .