Support » Plugin: Lara's Google Analytics » Disable printing on GA tag to wp_head

  • Resolved Clayton Collie


    I am using this plugin mainly for the dashboard widget. I already have my own tracking scripts printing the head of each page. Can you add a filter so I can disable printing the GA tracking script to the wp_head.

    Somewhere after line 136 of lara-google-analytics/core/wp.helper.functions.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Lara Google Analytics – Support


    Hello @claytoncollie,

    From the settings tab of the widget, you have the option to disable tracking completely, which will prevent the plugin from adding any script to wp_head.

    Kindly, let me know if I’m missing something.

    Thread Starter Clayton Collie


    I am trying to do it programmatically since I am bundling with some other plugins via Composer. I will look into a filter for that option from the DB so that I don’t have to set it in the admin one site at a time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable printing on GA tag to wp_head’ is closed to new replies.