I'm trying to change the Analytics code of a blog in Wordpress. However, I do not have much knowledge and I'm having trouble figuring out how the code was added.
As I researched, I was able to figure out 3 ways to add analytics code to wordpress. However, none of these forms has been used and yet it has an added analytics code.
The forms I found are:
- Using a plugin (I looked in the plugins and did not find Google Analytics or any other plugin with the word "Analytics" ).
- Inserting the code into
header.php
of the theme (The theme does not have the analytcs tag script. But it has a PHP function that might add something:<?php wp_head(); ?>
However, I'm not sure if the code is inserted by this function). - Creating a new function in the file
functions.php
(I looked for this file and it also has no script for analytics)
These were the only ways I found of adding Analytics code to Wordpress. But by the looks of it, the code has been added in another way.
Are there other ways to add Analytics code in Wordpress?