WebWeber Posted January 5, 2021 Share Posted January 5, 2021 (edited) I've been trying to setup Plausible.io but fail in integrating it 😂 There is a documentation and the whole magic should be to insert this snippet: <script async defer data-domain="my-prestashop.de" src="https://plausible.io/js/plausible.js"></script> into Quote the Header (<head>) section of your site. Place the tracking script within the <head> … </head> tags. I tried to add it into /themes/classic/templates/_partials/head.tpl and /themes/classic/templates/_partials/header.tpl but didn't succeed. Somehow they both don't contain a clear <head>-section. Can anyone hint me where to add this code? Edited January 10, 2021 by WebWeber (see edit history) Link to comment Share on other sites More sharing options...
Prestachamps Posted January 5, 2021 Share Posted January 5, 2021 Hi, you should add it at the end of /themes/classic/templates/_partials/head.tpl , as last lines as the following : {literal} <script async defer data-domain="my-prestashop.de" src="https://plausible.io/js/plausible.js"></script> {/literal} In a standard prestashop 1.7, the <head> ... </head> section is in the themes/classic/templates/layouts/layout-both-columns.tpl , which includes in the head the head.tpl , so if in your classic theme's head.tpl and header.tpl there is a clear <head>... </head> section, that means that there is something wrong there. You can paste or attach here your head.tpl file's content just to be sure that there is nothing wrong. Kind regards, Leo 1 Link to comment Share on other sites More sharing options...
WebWeber Posted January 10, 2021 Author Share Posted January 10, 2021 I added it now to the end of templates/_partials/head.tpl and it works like it should! Thanks again! Link to comment Share on other sites More sharing options...
Prestachamps Posted January 10, 2021 Share Posted January 10, 2021 Glad that it worked 2 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