Google Analytics - by Digital1010 - on WordPress WooCommerce support

This topic has 10 replies, 3 voices, and was last updated 2 years, 5 months ago ago by Rose Tyler

  • Avatar: Digital1010
    Digital1010
    Participant
    February 3, 2020 at 21:03

    Do you guys not have a spot to put Google tag code?
    I see you do instagram and facebook I would be surprised if you didnt have that…

    9 Answers
    Avatar: John Holden
    John Holden
    Support staff
    February 4, 2020 at 04:29

    Hi,

    You may use Insert Headers and Footers plugin to add Google analytics code.

    Regards,
    Hung PD

    Avatar: Digital1010
    Digital1010
    Participant
    February 4, 2020 at 22:37

    Well of course there are plugins I am just surprised such a extensive theme does not have the option to input header or custom java script in a section. Alot of other themes seem to support this.

    Avatar: boobeeboo
    boobeeboo
    Participant
    February 5, 2020 at 02:31

    Hi

    I have this same request so I hope you don’t mind me commenting here.

    I think adding code directly to the theme is preferable to installing the insert headers n footers plugin. Reason being, that plugin has not been updated for the past 4 months and not tested with wordpress latest versions. Lesser plugins is always a good idea.

    It’s true that this code will be lost when we change the theme but that’s a future problem which may or may not even happen if we stick to this theme for the foreseeable future.

    Will be great if you guys could consider letting us add the code directly to the theme somewhere?

    Avatar: boobeeboo
    boobeeboo
    Participant
    February 5, 2020 at 03:10

    I found a workaround. For those that wish to include the code directly.

    1) Create static block with raw js, insert the google analytics tracking code
    2) Go to header builder > html blocks > insert the static block
    3) Drag it to the top header section using the header builder

    It works.

    Avatar: John Holden
    John Holden
    Support staff
    February 5, 2020 at 06:47

    Hi,

    Thank you for your tips. Keep us in mind for future questions and concerns, we’re always here to help!

    Regards,
    Hung PD

    Avatar: Brunos
    Brunos
    Participant
    June 28, 2022 at 16:14

    Can you please explain how to create static block with raw js?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 28, 2022 at 18:32

    Hello, @Brunos

    That suggestion works if you use WPBakery page builder and there is such an element in the list of page elements. In case you use Elementor then install and activate Insert Headers and Footers plugin and use that to add your GA code.

    Regards

    Avatar: Brunos
    Brunos
    Participant
    June 29, 2022 at 06:31

    Thank you for clarification. I understand now why it was not possible for me by using Elementor…

    I found the plugin ‘WooCommerce Google Analytics Integration’ that does the work easily.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 29, 2022 at 06:37

    Hello,

    You’re welcome! Have a nice day!

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.