Himalayan-Academy / Siva-Siva-App

Code Repository for the Siva Siva Mobile App
11 stars 3 forks source link

Open Graph Tags + Google Analytics on all books #104

Open Brahmanathaswami opened 7 years ago

Brahmanathaswami commented 7 years ago
Brahmanathaswami commented 6 years ago

@soapdog here is the google analystics snippit from our web site

<!-- start Google Analytics tracking code -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  var pluginUrl = 
   '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
  _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
  _gaq.push(['_setAccount', 'UA-1029288-3']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<!-- end Google Analytics tracking code -->
soapdog commented 6 years ago

Most of the books were processed directly in DevHap because uploading them was impossible (Its a couple gigabytes). There are still some missing books which I am working on. Those are edge cases where the book filename is wrong and the export software can't find them.

I made a new tool to find all those cases and will process each one by hand.

I haven't sync'd devhap and hap yet. Oh and the images need processing.

Brahmanathaswami commented 6 years ago

Hmm can you give me examples of where the books filename is wrong? they file names should match the fileID

soapdog commented 6 years ago

All these here are wrong:

Brahmanathaswami commented 6 years ago

would it break anything if I fixed those? or should we just leave them all for now. it's only about 30 minute job...

soapdog commented 6 years ago

It might break the site because there are table entries linking books to channels. I don't know if they list the epub there. If they do, there might be the need to update the database entries.

Brahmanathaswami commented 6 years ago

oh, right... the format table will have an entry for every single version of the book...