Skip to content

Commit

Permalink
[FEATURE] Add google site verification meta tag. (#256)
Browse files Browse the repository at this point in the history
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
Anna Färber authored and pixelmatseriks committed Aug 11, 2017
1 parent 9886326 commit dc4d4ec
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
10 changes: 10 additions & 0 deletions Configuration/TypoScript/Library/page.siteverification.setupts
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 Configuration/TypoScript/Library/themes.analytics.constantsts

This file was deleted.

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 =

0 comments on commit dc4d4ec

Please sign in to comment.