Created
August 28, 2018 11:05
-
-
Save hasenbalg/90e9e0bfcabfd35f9cedf5c48ed9a423 to your computer and use it in GitHub Desktop.
Google Analytics in TYPO3 einbinden
This file contains hidden or 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
googleAnalytics.UA = TEXT | |
googleAnalytics.UA.value = blabla | |
page.headerData.98788 = TEXT | |
page.headerData.98788{ | |
value( | |
<!-- Google Analytics --> | |
<script> | |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; | |
ga('create', 'UA-XXXXX-Y', 'auto'); | |
ga('send', 'pageview'); | |
</script> | |
<script async src='https://www.google-analytics.com/analytics.js'></script> | |
<!-- End Google Analytics --> | |
) | |
stdWrap.replacement { | |
10 { | |
search = UA-XXXXX-Y | |
replace < googleAnalytics.UA.value | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment