• Resolved AJ Michels

    (@ajmichels)


    It would be great to have a filter around the custom GA code output so that when writing themes and plugins it is possible to programmatically modify data that is being sent to GA.

    A change such the following at lines 102 and 114:

    if ($gap_custom_code) echo apply_filters('gap_custom_code', $gap_custom_code) . "\n\t\t\t";

    This would be really helpful.

    • This topic was modified 6 years, 6 months ago by AJ Michels.
    • This topic was modified 6 years, 6 months ago by AJ Michels. Reason: fix typo in snippet
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Excellent idea, AJ.

    Will add something like this in the next plugin update.

    Thank you for the feedback.

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up with this. I’ve added a filter hook gap_custom_code for the output of the “Custom GA Code” setting. Thanks again for your feedback, AJ.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature Request: Custom GA Code filter’ is closed to new replies.