-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add google site verification meta tag. (#256)
Add theme constant for google site verification code. The meta tag is only needed on the startpage. Move analytics constant to Google Webmaster Tools section.
- Loading branch information
1 parent
9886326
commit dc4d4ec
Showing
3 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
Configuration/TypoScript/Library/page.siteverification.setupts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#Google site verification meta tag only for the startpage | ||
[globalVar = TSFE:id={$themes.configuration.pages.startsite}] | ||
page.meta { | ||
google-site-verification = TEXT | ||
google-site-verification { | ||
if.isPositive = {$themes.configuration.tracking.ga_siteVerification} | ||
value = {$themes.configuration.tracking.ga_siteVerification} | ||
} | ||
} | ||
[end] |
6 changes: 0 additions & 6 deletions
6
Configuration/TypoScript/Library/themes.analytics.constantsts
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
Configuration/TypoScript/Library/themes.googlewebmastertools.constantsts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
############################################# | ||
# Google Analytics tracking | ||
############################################# | ||
# customsubcategory=googleWebMasterTools= Google Webmaster Tools | ||
# cat=theme,expert/googleWebMasterTools/; type=string; label= Google Analytics Account | ||
themes.configuration.tracking.ga_account = | ||
|
||
|
||
############################################# | ||
# Google site verification code | ||
############################################# | ||
# customsubcategory=googleWebMasterTools= Google Webmaster Tools | ||
# cat=theme,expert/googleWebMasterTools/; type=string; label= Google Search Console | ||
themes.configuration.tracking.ga_siteVerification = |