Skip to main content

At this point, we offer the possibility to add CSS and JavaScript to the theme.

CSS

The CSS inserted here is loaded directly inline in the header. Please do not use JavaScript or HTML at this point.

JavaScript (Header / Footer)

Then we offer two more text fields to use JavaScript in the theme. Once for the header and once for the footer. Depending on the purpose of the code. You can use this section to integrate the Google Analytics tracking code. Please make sure you include the script-Containers in any case!

An example for the Google Analytics Code would be:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-XXXXXXX-X', 'auto');
  ga('send', 'pageview');
</script>

Was this article helpful?

1 Star2 Stars3 Stars4 Stars5 Stars
5.00 / 5

Keine Kommentare vorhanden


You have a question or an opinion about this post? Share it with us!

Your email address will not be published. Required fields are marked *

*
*