Skip to content

Commit

Permalink
[TASK] page.meta for webmaster tools > fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
misterboe committed Aug 23, 2017
1 parent 48c26b0 commit 57e63ce
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 15 deletions.
7 changes: 7 additions & 0 deletions Configuration/TypoScript/lib/env_develop.t3s
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@
inlineStyle2TempFile = 1
moveJsFromHeaderToFooter = 1
}

page {
meta {
robots >
robots = noindex,nofollow,noarchive
}
}
[END]
7 changes: 7 additions & 0 deletions Configuration/TypoScript/lib/env_local.t3s
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@
inlineStyle2TempFile = 0
moveJsFromHeaderToFooter = 1
}

page {
meta {
robots >
robots = noindex,nofollow,noarchive
}
}
[end]
34 changes: 19 additions & 15 deletions Configuration/TypoScript/lib/include_google.t3s
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
[globalString = IENV:HTTP_HOST = {$live_domain}]
### Google Webmaster Header Code ###
page.meta {
google-site-verification = TEXT
google-site-verification {
if.isTrue = {$googlewebmaster}
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.value = {$googlewebmaster}
}
}
}
### Google Webmaster Header Code - END ###

### Google Webmaster Header Code ###
page.headerData.700.if.isTrue = {$googlewebmaster}
page.headerData.700 = TEXT
page.headerData.700.value (
<meta name="google-site-verification" content="{$googlewebmaster}" />
)
### Google Webmaster Header Code - END ###

### Google Analytics Header Code ###
page.headerData.710.if.isTrue = {$googleanalytics}
page.headerData.710 = TEXT
page.headerData.710.value (
### Google Analytics Header Code ###
page.headerData.710.if.isTrue = {$googleanalytics}
page.headerData.710 = TEXT
page.headerData.710.value (
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
Expand All @@ -23,7 +28,6 @@ page.headerData.710.value (
ga('send', 'pageview');

</script>
)
### Google Analytics Header Code - END ###

)
### Google Analytics Header Code - END ###
[END]

0 comments on commit 57e63ce

Please sign in to comment.