• Resolved vm2003

    (@vm2003)


    Please congthien,

    Which is the best option, in your opinion, to integrate the Google Analytics code in “one press” theme?
    The same question to other Google codes (for example the Adwords conversion code or Google Tag Manager).

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @vm2003,

    I recommend you should use this plugin :

    https://www.ads-software.com/plugins/google-analytics-for-wordpress/

    Hope it helps!

    Thread Starter vm2003

    (@vm2003)

    Thank you for your information, congthien.

    One last question about this topic. If I want to incorporate to the web other Google codes (like Google Adwords code for conversions or Google Tag Manager code for instance) do you know the best way to do it?

    Regards,
    Vicen?

    Sorry but this question is out of scope of support, we only provide support for theme installation/usage related question. Hope you understand.

    Let me know if you need anything further!

    Thread Starter vm2003

    (@vm2003)

    Thank you, congthien. I understand.

    I asked you about a solution to integrate other codes to the web because other themes have a way to include those codes (in the head or in the body or in both) through the settings of its configuration. I didn’t see this option in “one press”. Therefore I liked to know if you could give me an advice about this topic based on your experience, a way to integrate new code to the web using your theme.

    Regards,
    Vicen?

    Yes. I know. But unfortunately, I don’t have enough experience with this to point you in the right direction. You can install some plugins to do that. It will be better if intergrade in theme ??

    Let us know if you need anything else!

    Kind Regards.

    Thread Starter vm2003

    (@vm2003)

    Thank you, congthien.

    As you told me in your last answer, there are several plugins that can be used for integrate Google codes in the web. I have seen some of them and I think I will find a goog solution for my purpose. First I have to study them, select and try.

    I also found a second way to integrate the codes. It is the next. I found it when a I searched for integrate Google Tag Manager code in a web. This second solution is to include the code in the header.php. In order to not modify the original theme file, the good way is to do it using a child theme.

    I supose this second solution is also good. In fact, I wouldn’t change the theme files (in the parent theme). But here I have a question: in case a future update of the theme would change the header.php, would I have to work again in the child theme, copying the new header.php and adding again the Google Tag Manager code? I suppose the answer is “YES” (could you confirm that?). And the 2 final questions are: do you ussually change the header.php in new versions or it is a file that normally is not updated instead? In case the file had changed in a new version, how can I know this fact?

    Thank you again.
    regards,
    Vicen?

    Hi Vicen?,

    All right, if you did it via child theme, it won’t be lost when upgrade theme. But I think use the 3rd plugin will easy and you don’t need modify something in source code. It is better if someone don’t know WordPress knowledge.

    And of course if you copied header.php to child theme, it won’t change when upgrade theme ?? All most the header section is fixed, we don’t often change it.

    • This reply was modified 8 years, 6 months ago by congthien.
    Thread Starter vm2003

    (@vm2003)

    Thank you, congthien.
    For me the issue is closed.

    Regards,
    Vicen?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Best option to integrate Google Analytics code and other Google codes’ is closed to new replies.