Difference between #164 and #165 of
Yii v2 snippet guide

Revision #165 has been created by rackycz on Oct 18, 2019, 9:53:39 AM with the memo:

seo
« previous (#164) next (#166) »

Changes

Title unchanged

Yii v2 snippet guide

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
To test your SEO score you can use special webs. For example [seotesteronline](https://suite.seotesteronline.com/seo-checker), but only once per day.
It will show some statistics and recommend enhancements so that your web is nicely shown on FB and Twitter or found by Google.

Important are for example OG meta tags or [TWITTER meta tags](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary). They are basicly the same. Read more [here](https://css-tricks.com/essential-meta-tags-social-media/). You can test them at [iframely.com](http://debug.iframely.com).

Basic tags are following and you should place them to head:
 
- Note that Twitter is using attribute "name" instead of attribute "property" which is defined in OG ... 
 
- btw OG was introduced by Facebook. Twitter can process it as well, but SEO optimizers will report an error when Twitter's tags are missing.


```html
[...]
<meta name="description" content="blah blah">
<meta property="og:type" content="website">
<meta
propertyname="twitter:title" content="blah blah"> <meta propertyname="twitter:description" content="blah blah">
<meta name="twitter:image" content="http://something.jpg">
```

Do not forget about file robots.txt and sitemap.xml:
[...]
7 0
4 followers
Viewed: 274 992 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history