Ready to get started?Download WordPress


Jetpack by WordPress.com
[resolved] How to add Google Analytics code to Jetpack's mobile them? (3 posts)

  1. chetanbhasin777
    Posted 1 year ago #

    Jetpack comes with a great analytics feature which I don't say is bad. However, there are many people who still prefer Google analytics or any third party tool to analyze their traffic.

    I see no direct way in Jetpack to integrate mobile theme with Google Analytics which we can do in our own theme by adding the code to the footer?

    Is there any way to do this by editing the Jetpack code? Is there any possibility that Automattic will add such feature to Jetpack?


  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I would strongly recommend against editing the Jetpack code, as your changes would get overwritten next time you update Jetpack.

    I would also recommend against editing your theme files to add Google Analytics, since you want that tracking code to always appear regardless of the theme you're using.

    Instead, you could use a Google Analytics like this one:
    It will add the tracking code to all your pages, regardless of the theme.

  3. chetanbhasin777
    Posted 1 year ago #

    Thanks for the suggestion. I will impliment yoast's plugin on my website.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic