I've inherited a wordpress site built on the Roots theme. It had two Google Analytics UA tracking snippets that appear after the closing footer tag in the homepage source.
I found and deleted one of the snippets but cannot find the origin of the remaining snippet.
Any clues from where the other UA tracking snippet is being pulled from?
My site's link is www.mcminnlaw.com.
I'm not sure which one you removed but in lib/scripts.php there is a function defined that prints the tracking block of code named roots_google_analytics. My guess would be whoever built this site just included a call to this function somewhere else. Deleting this code block should cause an undefined function error that will tell you where it is being called. This is where I would start.
Related
My website is https://example.com/
When I run a campaign for example https://example.com/?utm_source=sourceexample&utm_medium=facebook
I want that when I navigate to any page the ?utm_source=sourceexample&utm_medium=facebook should also propagate in the URL. Currently when I navigate to any other page or click on a link the UTM parameters disappear from the URL.
I was expecting some piece of code to put in the function.php file which should fix this issue but unfortunately I could not find it.
Please help me to achieve it.
gravity from has this option inside the plugin.
will display on end page on what page they started.
also in google analytics.
I made a custom non-editable Wordpress theme with custom pages and posts. I followed the directions Google gives to put Analytics 4 into the last line before the head closing tag. It does recognize when a user is in the page in realtime but always logs it as if the user stayed in the homepage. Regardless of whichever page the user is on, the analytics for page title and screen name only logs the homepage and never changes. I've tried with switching around the position of the code and some plugins too, it doesn't change anything. What am i failing to check or what alternatives do i have?
The script is added to the header, and the header is added dynamically with get_header(); on all the pages templates. Could it be a conflict with how the custom pages are created? The functions are managed by a snippets plugin and created with a generator.
Here's the repository if u need it
https://github.com/DairaF/wp-identidades/
I've used Google Tag Assistant in Chrome, and it says I have two Google Analytics tags # https://brand.insightdesign.com.au/
Inside our child theme's header.php I have Google Tag Manager installed.
Google Tag Manager deploys the correct Google Analytics tracking ID.
I don't know where the UA-164939599-1 GA property is coming from.
If I view the source of the webpage, I can't see this property ID.
There is no footer.php or theme-footer.php in the Divi child theme.
Help appreciated.
Edit: I wonder if it is coming from a 3rd party plugin tracking their plugin use?
The tag is added to the DOM:
Try to disable one plugin at a time and you will find the one responsible for unwanted tracking.
i have placed the Google ad sense code on website.. it shows the block but Google ad is not visible.
Looking forward for your valuable advise and experience.
Same issue here I have found what is causing this issue. When I insert the ad code inside the wordpress widgets, the wordpress is automatically removing the comments line of adsense > for eg: this is name of the ad unit given by adsense in the form of comment. But when I checked the webpage source code, it is automatically removing this line and so ads are not appearing and empty blocks appear. Haven't found a solution yet, will post it if I find it. I came here searching for one and saw your post.
I made a new theme in Wordpress before a year. And now i am updating as per requirement.
I have used Navayan Subscribe in this system. And i get Google ads in that place(frontend) and other place too(middle of the page). I don't know where are they coming from. As i have never used Google ads in clients website. You can check this page on the right hand side.
Thanks in advance.
It looks to me that the ads are coming from the widgets.
Go to Appearance > Widgets and check there.
If they are not there, check the code inside sidebar.php file by going to Appearance > Editor and open Sidebar.
You can also disable your plugins to see if some plugin is a cause the ads.
If still no luck then check other php pages for malicius code in the theme by looking for encrypted php code that looks like this:
eval(gzinflate(base64_decode('80jNycl...