Okay
  Print

How to add custom Analytics Code

Theme offers Google Analytics Tracking Code ( Classic/Universal ), by providing only the Tracking ID. Adding a custom analytics code instead of Google Tracking code is possible via Child Theme.

Function grve_print_tracking_code is used to print the tracking code to the header and can be overwritten.

To overwrite the function just add the function to your functions.php file of the Child Theme.

function grve_print_tracking_code() {
?>
<script type='text/javascript'>
    //Custom Tracking Code
</script>
<?php
}

Your tracking code will then replace the Google Tracking script

Another option is to use the default WordPress hooks using your own function.

Adding a function like:

function grve_child_theme_print_custom_code() {
?>
    <!-- Your custom Code -->
<?php
}

And use either the wp_head hook for header

add_action( 'wp_head', 'grve_child_theme_print_custom_code' );

or the wp_footer hook for footer

add_action( 'wp_footer', 'grve_child_theme_print_custom_code' );