Google Analytics – How to disable?

This topic contains 6 replies, has 4 voices, and was last updated by  Kiran 5 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #433787

    Dirk
    Full Member
    Post count: 390

    I’m trying to switch off google analytics completly, but GDv1 is still generating some code. I have switched off everything in GD-General-Google Analytics (see pic). But you are fetching a tracking code from “geodir_ga_tracking_code” out of WP-Options. Where do I find the option page for it? I went through all, did not find. Or how to completely disable google analytics?

    #433791

    Kor
    Moderator
    Post count: 16516

    Hi Dirk,

    Could you please share WP admin access in private reply so that we could check on it?

    Thanks!

    #433792

    Dirk
    Full Member
    Post count: 390

    I have emptied the option in the database and now the js file and the tracking code is not generated anymore.
    Is this a leftover of an older version? If so, you have to ensure that this is deleted as I was sure that I disabled google analytics in GD but it was generating something hidden for me.

    Dirk

    #433793

    Dirk
    Full Member
    Post count: 390

    Kor,

    this is due to line 264 in geodir_template_tags.php.

    The first if statement is with what is on the actual option page (GD-General-Google-Analytics). But the bad thing is in the elseif statement. You are pulling from geodir_ga_tracking_code out of the database.

    No need for you to get WP admin access here.

    Best,
    Dirk

    #433819

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    That looks like the old input we had for it, the else statement is so it would still work if you had not filled in the new system details.
    I have added a task for this to be removed on disable of new system.

    Stiofan

    #433828

    Dirk
    Full Member
    Post count: 390

    Thanks. In my case I have already emptied the database entry and it is completely removing the tracking codes. Was just wondering why after disable the “new” system that there is still something generated.

    Best,
    Dirk

    #433900

    Kiran
    Moderator
    Post count: 7069
Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket