Skip to content

Personal stuffs change guide

Trần Trọng Quang edited this page Sep 12, 2018 · 3 revisions

If you're going to use this theme for production, make sure to change all the personal settings such as Google Analytics Tracking ID, Disqus shortname...

Google Analytics

In default.hbs file:

{{! Google Analytics }}
<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','//www.google-analytics.com/analytics.js','ga');

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

Modify UA-66599377-1 to your own GA Tracking ID.

In case you don't know where the Tracking ID is, go to your Google Analytics home, then:

Go to Admin > Tracking Info > Tracking Code > copy that Tracking ID GA

If you don't want to use GA at all, just delete whole GA script code block!

Disqus

This theme use Disqus as commenting system, because Ghost doesn't support commenting in native.

Goto assets/index.js file, look at the bottom you'll see:

var disqus_shortname = 'quangtt';

Replace quangtt by your Disqus username. In case you do not want to use it, just left it blank like this:

var disqus_shortname = '';
Clone this wiki locally