angular and seo

27
Angular and SEO we.in(kansas)==!anymore

Upload: greenlaneseo

Post on 20-Jan-2017

90 views

Category:

Marketing


0 download

TRANSCRIPT

Page 1: Angular and SEO

Angular and SEOwe.in(kansas)==!anymore

Page 2: Angular and SEO

misconceptioninception

Page 3: Angular and SEO

What We’re Covering• wtf is a website, anyway?• javascript primer• how {{ angular }} sites are {{ built }}• angular + seo• don’t fight the future• resources

Page 4: Angular and SEO

wtf is a website, anyway?ain’t your gramma’s content consumption anymore

Page 5: Angular and SEO

From text content...The first websites were just a way of making linked text documents available.

The first true website ever is still online:

http://info.cern.ch/hypertext/WWW/TheProject.html

Page 6: Angular and SEO

6

Page 7: Angular and SEO

… to dynamic applicationsWebsites today do way more than serve up text or digital magazine pages.

Modern websites are full-fledged applications.

Page 8: Angular and SEO

8

Page 9: Angular and SEO

javascript primeralert(“don’t be alarmed”);

Page 10: Angular and SEO

Javascript - web programmingHTML is a markup language - tells a browser how to layout and style a document.

Javscript is a scripting programming language - basically adding features to the browser.

Page 11: Angular and SEO

HTML example<body><h1>Heading</h1><br /><strong>Hello there.</strong></body>

Page 12: Angular and SEO

Javascript example<script>

document.addEventListener( 'DOMContentLoaded', function ()

{

document.write('hello there');

}, false );

</script>

Page 13: Angular and SEO

how angular sites are {{ built }}

more app than site

13

Page 14: Angular and SEO

Template + controllerThe two basic components of an Angular app are:Template - builds the page layoutController - connects functions to the template

Page 15: Angular and SEO

The templateThe two basic components of an Angular app are:Template - builds the page layoutController - connects functions to the template

Page 16: Angular and SEO

<superfunnypanel title="Personal Data"

edit="/employee/{{employee.id}}/edit">

<!-- actual content comes here -->

</superfunnypanel>

module.directive('superfunnypanel', function () { return

{restrict:’E’, //some fancy code whatever you get it

right

Controller:

Template:

Page 17: Angular and SEO

angular + seobest of both worlds (ish)

Page 18: Angular and SEO

1. Google can crawl it.

https://www.screamingfrog.co.uk/seo-spider-6-0/

Page 19: Angular and SEO

2. You gotta crawl like Google.

https://webmasters.googleblog.com/2014/05/understanding-web-pages-better.html

Page 20: Angular and SEO

3. Pushstate

http://www.codelord.net/2015/05/12/angularjs-how-to-setup-pushstate-with-html5mode/

Page 21: Angular and SEO

4. Don’t view-source, inspect.

Page 22: Angular and SEO

5. Don’t contradict

tags.

Page 23: Angular and SEO

6. AJAX

23

Asynchronous JavaScript and XML

Infinite Suggest AJAX https://script.google.com/macros/s/AKfycbxLiwwsGKnNbEp9YBmytHlgS6u8i7HNZXGb_Z_MJFWoocHubDnV/exec?k=skate%20board&l=en&loc=google.com&limit=10&offset=0&callback=JSON_CALLBACK

Google internal AJAX https://www.google.com/complete/search?client=serp&hl=en&gs_ri=serp&q=rank%20tank%20

Page 24: Angular and SEO

7. AJAX timeout

Page 25: Angular and SEO

don’t fight the futurepeople thought inline images were dumb once

Page 26: Angular and SEO

resourcesgit knowledged

Page 27: Angular and SEO

Resources• https://builtvisible.com/javascript-framework-seo/

• https://www.v9seo.com/blog/2016/07/08/seos-need-know-about-angularjs-sites/

• http://www.codelord.net/2016/01/20/setting-up-seo-on-an-angular-app/

• http://www.codelord.net/2015/05/12/angularjs-how-to-setup-pushstate-with-html5mode/

• http://www.angularjsseo.com/