Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor cborodescu

    (@cborodescu)

    @beegee1962 We support Google Analytics (see Settings tab). You just need to copy-paste your Google Analytics ID, it looks something like UA-XXXXXXXX-X

    Thread Starter beegee1962

    (@beegee1962)

    I was not asking for Google Analytics, I was asking where to place the code for an independent website access counter. I am using Statcounter (check the link in my original post).

    Anonymous User 13868920

    (@anonymized-13868920)

    @beegee1962

    The tracking code can go in the index file of the theme. You can find it under wordpress-mobile-pack/themes/base in your plugins folder.

    Since the mobile web app uses the whole height of the screen (to mimic a native app), I wouldn’t recommend using tracking scripts that display images since they will introduce vertical scrolling. I don’t know if statcounter has a script that can be added in the <head> section, but if it does, I would recommend using that instead.

    Thread Starter beegee1962

    (@beegee1962)

    But if I put it there it will be overwritten with the next update of the theme.

    Is there no safe location where it will survive a theme update?

    Take it as a feature request.

    Anonymous User 13868920

    (@anonymized-13868920)

    @beegee1962

    Sorry for the delay. You are right about the code being overwritten by a theme update. For now, the only solution is to modify the index file, but we will add a section in the admin panel for saving such codes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where to put the code for StatCounter?’ is closed to new replies.