Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2570153
Google Codes
Closed

Comments

  • TAGC16 started the conversation

    Hi there,

    google is asking me to update the new tag Global tag (gtag.js) and sent me a code to insert as a first element in the <Head>
    "This is the Global Site Tag (gtag.js) tracking code for this property. Copy and paste this code as the first element in the <HEAD> of each web page to be monitored. If the page already contains a Global Site Tag, just add the config line of the snippet below it to the Global Site Tag.
    CODE
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-91421377-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'UA-91421377-1');
    </script>

    Where can I put the code in the Soledad personalization 
    And if I already have codes inside where is possible to add it?

    We are also using an AMP feature for all mobile devices and I don't Know if I need to modify the AMP personalization.

    Moreover I have also to include this code for my site images to appear wide on Google Discover in the <Head> of each page of the site.

    CODE

    <meta name="robots" content="max-image-preview:standard">

     Could you help me on this task too?

    Regards

  •  2,699
    PenciDesign replied

    Hi,

    You can put the code to Customize > General Options > Add Custom Code Inside <head> Tag

    You can put the code:  

    <meta name="robots" content="max-image-preview:standard">

    inside the option above here also.

    For AMP - don't put the code to AMP because it will make your AMP can't be validatesmile.pngAMP has support option for Google analytics already - let's use analytics options for AMP.


    Best Regards,

    PenciDesign

  • TAGC16 replied

    Thank you very much for your reply!

    But rorry, I don't find the option you mentioned "You can put the code to Customize > General Options > Add Custom Code Inside <head> Tag"
    You mean I need to put code in this position? See "screenshot 1"

    Inside I already have a code for adsense - see below
    ---------------------------------------------
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- TAGC_DAHR1 -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-2611248086462335"
         data-ad-slot="3803067345"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    ------------------------------------------------------------------
    If I need to put code inside this could you please specify in which  position I have to write the code?


    See "Screenshot 2" for request from google sent me for the code

    Thank You



  •  2,699
    PenciDesign replied

    Hi,

    Ahh sorry, it's on Customize > Logo and Header Options > Add Custom Code Inside <head> Tag

    Just copy and paste the code to that option.


    Best Regards,

    PenciDesign