Sign in

Google Analytics in TechNews Theme

  • This topic has 3 replies, 3 voices, and was last updated 2 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2907
    Avatar photo[anonymous]

    Hi,

    Really love using Publii and I have tried to find the answer about Google Analytics in this forum.

    However, I couldn’t find the answer and I wasn’t sure if it’s theme dependant?

    I am using the theme TechNews and I have a Google Analytics code that I am placing in the custom HTML tool. I have tried different options, e.g. placing:

    • head
    • body
    • footer
    • AMP head
    • AMP Footer
    • before every post
    • after every poster

    Do you have any sugesstions where to put the GA code to make it work or do I need to put in a combination of several places?

    thanks a lot in advance!!

     

     

    #2910
    Avatar photoBob

    Just put the code into the head section.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3646
    Avatar photomadamov

    Just put the code into the head section.

    I suppose the same goes for Stat Counter or any other similar service?

    #3649
    Avatar photoBob

    It depends on the scripts/services, but usually yes.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.