How to include google adsense code at footer in prestashop 1.7
In this post I am going to explain how to include google adsense code at footer in prestashop 1.7
In order to add your google adsense code at footer, please open the below files from your current template/theme.
For example classic template footer.tpl file path.
[PrestaShop Root Directory]/themes/classic/templates/_partials/footer.tpl
Please check your template name and find the footer.tpl file according to your template name.
Now, at the end of current code in footer.tpl file include your adsense code like below.
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="xxxxxxxx"
data-ad-slot="xxxxxxxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Here, replace “data-ad-client” with your publisher ID & “data-ad-slot” with your ad unit’s ID.
Save changes in this file, refresh your home page and check the changes:
Thats it!
Write an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news, tips & more!



May 6, 2020 at 11:15 am
awesom….gives a clear idea ………. Thanks !