SEO Essentials for Meteor

React (Facebook) Angular (Google) Blaze (Meteor) are three common Javascript Frameworks.
  1. manuelschoebel:ms-seo (https://github.com/DerMambo/ms-seo)
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 -->

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ARKit Pods — Portals

TryHackMe Web Enumeration Write-up

Typing React (1) — Basic

Implementing your own Array class in javascript

Fundamentals of JavaScript Part Two

Cheerio JS Vs. Proxies API

Cashbird customer care number..9832968895=9330647797..

Building a Sales tool Slackbot with Node.js

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nathan Parrott

Nathan Parrott

More from Medium

Switching from Bootstrap to Tailwind

Syncing Contacts between Sanity and Active Campaign

Zendesk Custom Pages: Backend User Creation

Easily Customize Your Shopify Theme

Successful Shopify Purchase