Add javascript from optimizely

(Sebastian) #1


Is there a way to add js tracking code from other products like optimizely/kissmetrics to the forum from the admin?

Ember errors when adding script to </body>
(Dean Taylor) #2

In Admin > Customize > CSS/HTML, create a new customization.

Look at the </body> section.

Add something like:

// The crazy additional JavasScript code you want to add here.

(Sam Saffron) #3

Note, this only covers desktop, we need a cleaner way of quickly adding a script to both desktop and mobile.

(Nur) #4

is the cleaner way done?

(Joshua Rosenfeld) #5

Yes. There is now a “Common” theme which is applied to both desktop and mobile.

(Mike Wood) #6

The CSS/HTML tab doesn’t exist anymore.

Is there somewhere else I can add custom scripts?

(Joshua Rosenfeld) #7

This topic is quite old. We’ve redone our customization system since this was written.

To add JS to your site, go to /admin/customize/themes, select your active theme (indicated by the *), then click “Edit CSS/HTML”. You’ll find the </body> section there.

(Mike Wood) #8

Thanks Joshua for the fast reply!