SEO Essentials for Meteor

Nathan Parrott
Oct 11, 2018 · 6 min read
React (Facebook) Angular (Google) Blaze (Meteor) are three common Javascript Frameworks.

meteor add manuelschoebel:ms-seo
Router.route('/about', {onBeforeAction: function(){SEO.set({title: "About",meta: {'description': 'FastX is the fastest way to convert cryptocurrency into cash.',},og: {'title': "About",'description': `FastX is Australia's best value cryptocurrency marketplace. Buy, Sell & Trade - Bitcoin, Ethereum, Litecoin, Nano, Ripple. No fees, Instant payments. Live market rates.`,'image': "https://fastx.io/images/fastx_logo.jpg"}});this.next();},action: function() {import "./imports/ui/pages/about.js";this.render('about');}});
Meteor.startup(function() {if(Meteor.isClient){return SEO.config({title: 'FastX | Sell Bitcoin, Ethereum, Litecoin & Ripple',meta: {'description': `Buy, Sell & Trade - Bitcoin, Ethereum, Litecoin, Nano, Ripple. No fees, Instant payments. Live market rates. Australia's best value marketplace`,'viewport': "width=device-width, initial-scale=1"},og: {'description': 'No fees, Instant payments, Live market rates','image': 'https://fastx.io/images/fastx_logo.jpg'}});}console.log("PhantomJs Working?:"+isSpiderable());});function isSpiderable(){return /PhantomJS/.test(window.navigator.userAgent);}

Meteor.startup(() => {let prerender = require(‘prerender-node’)prerender.set(‘prerenderToken’, '<VERIFICATION TOKEN>');prerender.set(‘protocol’, ‘https’);prerender.set(‘host’, ‘www.yourwebsite.com');prerender.crawlerUserAgents.push(‘googlebot’);prerender.crawlerUserAgents.push(‘bingbot’);prerender.crawlerUserAgents.push(‘yandex’);WebApp.rawConnectHandlers.use(prerender);}
<script>window.prerenderReady = false;</script> <!-- Tells pre-render not to cache yet. -->
Template.your_template.onRendered(function() {
window.prerenderReady = true;//Tell pre-render we are now ready
});



<!-- Google structured data --><script type="application/ld+json">//Organization{"@context": "http://schema.org","@type": "Organization","url": "https://www.fastx.io","logo": "https://fastx.io/images/fastx_logo.jpg"},//Social Media{"@context" : "http://schema.org","@type" : "Organization","name" : "FastX","url" : "https://www.fastx.io","sameAs" : ["https://www.facebook.com/fastxcrypto","https://twitter.com/fastxcrypto","https://linkedin.com/company/fastx"]},//Contact Point{"@context": "http://schema.org","@type": "Organization","url": "https://www.fastx.io/support","contactPoint": [{ "@type": "ContactPoint","telephone": "+61422060805","contactType": "customer service"}]}</script><!-- End Google Structured Data -->

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade