Scroll to top

How to add google analytic code in wordpress?

Author
Conversation
Share on facebook
Share on google
Share on twitter
Share on linkedin
<?php
add_action('wp_footer', 'add_googleanalytics');
function add_googleanalytics() { ?>
// Paste your Google Analytics code here
<?php } ?>

//paste this code in your theme function file  (default: function.php)

Recent Posts

Test

envato iconUpwork Profile