forked from nystudio107/seomatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
executable file
·136 lines (119 loc) · 4.73 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
/**
* SEOmatic Configuration
*
* Completely optional configuration settings for SEOmatic if you want to customize some
* of its more esoteric behavior, or just want specific control over things.
*
* Don't edit this file, instead copy it to 'craft/config' as 'seomatic.php' and make
* your changes there.
*/
return array(
/**
* The maximum number of characters allow for the seoTitle. It's HIGHLY recommend that
* you keep this set to 70 characters.
*/
"maxTitleLength" => 70,
/**
* Controls whether SEOmatic will truncate the text in <title> tags maxTitleLength characters.
* It is HIGHLY recommended that you leave this on, as search engines do not want
* <title> tags to be long, and long titles won't display well on mobile either.
*/
"truncateTitleTags" => true,
/**
* The maximum number of characters allow for the seoDescription. It's HIGHLY recommend that
* you keep this set to 160 characters.
*/
"maxDescriptionLength" => 160,
/**
* Controls whether SEOmatic will truncate the descrption tags maxDescriptionLength characters.
* It is HIGHLY recommended that you leave this on, as search engines do not want
* description tags to be long.
*/
"truncateDescriptionTags" => true,
/**
* The maximum number of characters allow for the seoKeywords. It's HIGHLY recommend that
* you keep this set to 200 characters.
*/
"maxKeywordsLength" => 200,
/**
* Controls whether SEOmatic will truncate the keywords tags maxKeywordsLength characters.
* It is HIGHLY recommended that you leave this on, as search engines do not want
* keywords tags to be long.
*/
"truncateKeywordsTags" => true,
/**
* SEOmatic will render the Google Analytics <script> tag and code for you, if you
* enter a Google Analytics UID tracking code in the Site Identity settings. It
* does not render the <script> tag if devMode is on or during Live Preview, but
* here is an additional override for controlling it.
*/
"renderGoogleAnalyticsScript" => true,
/**
* SEOmatic will render the Google Tag Manager <script> tag and code for you, if you
* enter a Google Tag Manager ID tracking code in the Site Identity settings. It
* does not render the <script> tag during Live Preview, but here is an additional
* override for controlling it. It does render the script tag if devMode is on,
* to allow for debugging GTM.
*/
"renderGoogleTagManagerScript" => true,
/**
* This controls the name of the Javascript variable that SEOmatic outputs for the
* dataLayer variable. Note that the Twig variable always will be named:
* `dataLayer` regardless of this setting.
*/
"gtmDataLayerVariableName" => "dataLayer",
/**
* SEOmatic will render Product JSON-LD microdata for you automatically, if an SEOmatic Meta
* FieldType is attached to a Craft Commerce Product. Set this to false to override
* this behavior, and not render the Product JSON-LD microdata.
*/
"renderCommerceProductJSONLD" => true,
/**
* SEOmatic uses the `siteUrl` to generate the external URLs. If you are using it in
* a non-standard environment, such as a headless ElementAPI server, you can override
* what it uses for the `siteUrl` below.
*/
"siteUrlOverride" => '',
/**
* Controls whether SEOmatic will display the SEOmetrics information during Live Preview.
*/
"displaySeoMetrics" => true,
/**
* Determines the name used for the "Home" default breadcrumb.
*/
"breadcrumbsHomeName" => 'Home',
/**
* Determines the string prepended to the <title> tag when devMode is on.
*/
"siteDevModeTitle" => '[devMode]',
/**
* This allows you to globally override the meta settings on your website. WARNING:
* anything you set here will REPLACE the meta settings globally. You might wish to
* use this, for instance, to set 'robots' to be 'none' on development/staging to
* prevent crawlers from indexing it. Since this config file is multi-environment aware,
* like any Craft config file, this allows you to do just that.
* Leave any value in the array blank to cause it to not override.
*/
"globalMetaOverride" => array(
'locale' => '',
'seoMainEntityCategory' => '',
'seoMainEntityOfPage' => '',
'seoTitle' => '',
'seoDescription' => '',
'seoKeywords' => '',
'seoImageTransform' => '',
'seoFacebookImageTransform' => '',
'seoTwitterImageTransform' => '',
'twitterCardType' => '',
'openGraphType' => '',
'robots' => '',
'seoImageId' => '',
),
/**
* This allows you to exclude locales from SEOmatic's automatic handling of
* hreflang. Useful for some multi-site situations
*/
"excludeLocales" => array(
),
);