seofuture Posted September 13, 2019 Share Posted September 13, 2019 Witajcie, Presta 1,6. Korzystam ze standardowej wtyczki do osadzenia GA: Niestety kod się wstawian na samym końcu sekcji <head> a ja bym chciał, żeby to było na samym początku. W jaki sposób to przestawić? A może olać wtyczki i ręcznieto do pliku wstawić? Jeśli tak to do którego? Z góry dziękuję za pomoc. Link to comment Share on other sites More sharing options...
charles74 Posted November 1, 2019 Share Posted November 1, 2019 Ja też tego chcę na początku. Znalazłeś coś działającego? Link to comment Share on other sites More sharing options...
seofuture Posted November 12, 2019 Author Share Posted November 12, 2019 tak z palca themes/nazwa themes/header.tpl na samym początku wstawiasz w literalu <head> {literal} <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxxxx"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-xxxxxxxx'); </script> {/literal} działa idealnie Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now