Jump to content
nicolaecc

location for adwords tag in prestashop 1.7.6

Recommended Posts

Posted (edited)

Hello,

Could you inform me where the google tag (issued by google tag manager) should be inserted in prestashop 1.7.6 in order to be available on all pages?

themes/classic/templates ...

Thank you.

Nicolae

Buna ziua,

Stiti va rog unde trebuie copiat codul de urmarire din tag manager  pt prestashop 1.7.6?

themes/classic/templates ...

Multumesc.

Nicolae

Edited by nicolaecc (see edit history)

Share this post


Link to post
Share on other sites
On 8/31/2019 at 11:30 PM, nicolaecc said:

Hello,

Could you inform me where the google tag (issued by google tag manager) should be inserted in prestashop 1.7.6 in order to be available on all pages?

themes/classic/templates ...

Thank you.

Nicolae

Buna ziua,

Stiti va rog unde trebuie copiat codul de urmarire din tag manager  pt prestashop 1.7.6?

themes/classic/templates ...

Multumesc.

Nicolae

Salut,

GTM (Google tag Manager) este inserat în eticheta <HEAD> a oricărei versiuni prestashop. Deoarece eticheta antet este disponibilă în toate paginile. Deci, puteți introduce codul GTM în eticheta antetului și va funcționa pentru toate paginile.

Mulțumiri

Share this post


Link to post
Share on other sites

Multumesc frumos pt raspuns. Nu vad in fiser acest GTM cod.

Fisierul HEAD din locatia public_html/themes/classic/templates/_partials/head.tpl este copiat mai jos:

{**
 * 2007-2019 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2019 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
{block name='head_charset'}
  <meta charset="utf-8">
{/block}
{block name='head_ie_compatibility'}
  <meta http-equiv="x-ua-compatible" content="ie=edge">
{/block}

{block name='head_seo'}
  <title>{block name='head_seo_title'}{$page.meta.title}{/block}</title>
  <meta name="description" content="{block name='head_seo_description'}{$page.meta.description}{/block}">
  <meta name="keywords" content="{block name='head_seo_keywords'}{$page.meta.keywords}{/block}">
  {if $page.meta.robots !== 'index'}
    <meta name="robots" content="{$page.meta.robots}">
  {/if}
  {if $page.canonical}
    <link rel="canonical" href="{$page.canonical}">
  {/if}
  {block name='head_hreflang'}
      {foreach from=$urls.alternative_langs item=pageUrl key=code}
            <link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
      {/foreach}
  {/block}
{/block}

{block name='head_viewport'}
  <meta name="viewport" content="width=device-width, initial-scale=1">
{/block}

{block name='head_icons'}
  <link rel="icon" type="image/vnd.microsoft.icon" href="{$shop.favicon}?{$shop.favicon_update_time}">
  <link rel="shortcut icon" type="image/x-icon" href="{$shop.favicon}?{$shop.favicon_update_time}">
{/block}

{block name='stylesheets'}
  {include file="_partials/stylesheets.tpl" stylesheets=$stylesheets}
{/block}

{block name='javascript_head'}
  {include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars}
{/block}

{block name='hook_header'}
  {$HOOK_HEADER nofilter}
{/block}

{block name='hook_extra'}{/block}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More