Kong / docs.konghq.com

🦍 Source code for docs.konghq.com website.
https://docs.konghq.com
MIT License
195 stars 589 forks source link

Meta stuff website #40

Closed christinang89 closed 9 years ago

christinang89 commented 9 years ago

Please add the following to kong website:

1. Json-LD

<script type="application/ld+json">
{ "@context" : "http://schema.org",
  "@type" : "Organization",
  "name" : "Mashape",
  "url" : "http://getkong.org/",
  "logo" : "[replace with image url]",
  "sameAs" : [ "https://www.facebook.com/Mashape",
    "https://twitter.com/mashape",
    "https://plus.google.com/+mashape"]
}
</script>
<!-- Start Visual Website Optimizer Asynchronous Code -->
<script type='text/javascript'>
var _vwo_code=(function(){
var account_id=125292,
settings_tolerance=2000,
library_tolerance=2500,
use_existing_jquery=false,
// DO NOT EDIT BELOW THIS LINE
f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById('_vis_opt_path_hides');if(a)a.parentNode.removeChild(a);}},finished:function(){return f;},load:function(a){var b=d.createElement('script');b.src=a;b.type='text/javascript';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName('head')[0].appendChild(b);},init:function(){settings_timer=setTimeout('_vwo_code.finish()',settings_tolerance);this.load('//dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&r='+Math.random());var a=d.createElement('style'),b='body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}',h=d.getElementsByTagName('head')[0];a.setAttribute('id','_vis_opt_path_hides');a.setAttribute('type','text/css');if(a.styleSheet)a.styleSheet.cssText=b;else a.appendChild(d.createTextNode(b));h.appendChild(a);return settings_timer;}};}());_vwo_settings_timer=_vwo_code.init();
</script>
<!-- End Visual Website Optimizer Asynchronous Code -->

3. Existing meta property og:description

Please change to:

Kong is the Next Generation RESTful API Management Platform to secure, manage & extend your APIs or Microservices. Made with Love by Mashape.

4. Share image

Please replace http://getkong.org/share.png image with the attached kong image and make sure it is available on http://getkong.org/share.png

kong

5. Send users who sign up for email updates to customer.io

Format for identifying users via segmentio's identity function is wrong. Instead of nesting userId inside the traits object, you need to send it as the first param. You need to send this:

analytics.identify('christina@mashape.com', {
  email: "christina@mashape.com",
  environment: 'kong',
  name: 'Christina Ng'
});

Right now, you are sending this which doesnt work:

analytics.identify({
  userId: 'christina@mashape.com',
  environment: 'kong',
  name: 'Christina Ng',
  email: "christina@mashape.com"
});

6. Send event for Viewed XX page

We need to send custom events for "Viewed XX page" e.g. "Viewed Documentation page" and "Viewed Enterprise page" and "Viewed Plugins page" etc via analytics.track.

This is because mixpanel doesnt allow me to build a funnel using the analytics.page events so I need a separate analytics.track event.

christinang89 commented 9 years ago

Thank you! Verified all working :)