0
Welcome Guest! Login
0 items Join Now

disable google analytics by link

    • mrbernd's Avatar
    • mrbernd
    • Hero Rocketeer
    • Posts: 422
    • Thanks: 0

    disable google analytics by link

    Posted 9 years 7 months ago
    • hi there,

      i must give visitors of my site the possibility to disable google tracking.
      i will place a link and run a short script
      i have to place code before google analytics code runs.
      which file i have to edit?

      thank you
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: disable google analytics by link

    Posted 9 years 7 months ago
    • Well you could edit the templates index.php file - but a better way might be to use one of the extensions available on JED to dynamically add in your additional script into the head tag (e.g. headtag or "headscript").

      If you choose to overwrite the templates index.php remember that it will be overwritten again by template updates.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • mrbernd's Avatar
    • mrbernd
    • Hero Rocketeer
    • Posts: 422
    • Thanks: 0

    Re: disable google analytics by link

    Posted 9 years 7 months ago
    • hi mark,

      which extensions do you mean, is a good choice for this job?

      would it be possible for the future that the templates will generate this links?

      regards

      mrbernd
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: disable google analytics by link

    Posted 9 years 7 months ago

Time to create page: 0.236 seconds