Issue with existing analytics tag
-
Hi,
When I tried to add Analytics to my site in the Site Kit, the following error is produced.
“Error: We’ve detected there’s already an existing Analytics tag on your site (ID UA-****90717-1), but your account doesn’t seem to have access to this Analytics property. You can either remove the existing tag and connect to a different account, or request access to this property from your team.”I went though the previous threads related to the same problem and found the following code in my homepage.
<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-****90717-1″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());gtag(‘config’, ‘UA-****90717-1’);
</script>In Google Analytics my measurement ID is totally different. How do I rectify the issue ?
Thanks.
M.Shafeen
-
Thanks for reaching out. Hopefully we’ll be able to assist. Nice troubleshooting in locating the source of the snippet. This snippet may have been planed into your theme files directly, or alternatively placed via a plugin feature or theme configuration. You’ll need to remove this existing snippet or get access from a Google account which has access to this associated property.
If you’d like to share your Site Health information privately using this form we can inspect your current setup check if we can help identify the placement.
Many thanks for sharing your Site Health information. From looking at the details provided I noticed the following plugins:
- Code Snippets
- Head, Footer and Post Injections:
Can you check those plugins for the placement of the
UA-****90717-1
Analytics property snippet? If you remove that snippet you should be then able to setup the Analytics module with your preferred Analytics property.Hi James,
Thank you for the response.
I had a look at both of them. But I couldn’t find anything related to that code. Frankly Code Snippets is not used at all. Head, Footer and Post Injections only has Facebook pixel installed.
I deactivated both but still the error is reported in Analytics.Any idea ?
Regards,
M. Shafeen
Thanks for the update. In that case I suspect it’s another plugin or possibly your theme files or configuration that host the existing Analytics tracking code. Below you’ll find a troubleshooting guide to try and determine the cause.
- Ensure logged in users are counted in your Analytics metrics. You’ll find the settings under “Site Kit > Settings > Connected Services > Analytics > Edit”.
- Install and activate the Health Check & Troubleshooting plugin.
- Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”. (This will temporarily deactivate other plugins and switch to a default theme – for you only, as a logged in user).
- Search your sites source code, I suspect you won’t find any Analytics snippet placed
- Back in troubleshooting mode click on the “Enable” option next to any additional plugin one at a time, before then visiting your sites source code once more and checking does the snippet remain (each time). You’ll also need to refresh the source code screen each time.
- If you’re able to locate snippet in your source code you’ll know which plugin if any has placed this snippet. If you’re unable to determine a plugin is responsible continue below to check your theme.
- Back in troubleshooting mode select a different theme, the theme normally activated on your site.
- Search the source code once mode (Please refresh the page before checking)
- If the snippet appears that means the Analytics tracking snippet is placed in your theme files directly or alternatively a theme configuration.
Let me know if you have any questions on the above. If you’re unsure how to check your sites source code you can type the below URL in your address bar, replacing the mysite.com with your own site:
view-source:https://mysite.com
Hi James,
I’m very new to WP and it was really awesome to learn all these.
The issue is with the Astra theme. Please let me know the follow up steps.
Thank you very much for the assistance.
Regards,
M.Shafeen
Nice troubleshooting! In that case did you checkout the Astra theme files, or if you’re using the Astra pro theme there may be options to insert snippets.
I noticed you’re using Astra pro, so you may find the snippet by following this guide:
https://wpastra.com/docs/how-to-add-google-analytics-code-with-custom-layouts-module/If the snippet isn’t contained above you can inspect the theme files by navigating to “Appearance > Theme Editor”. On the right hand side you’ll find all the Astra files. If the snippet is inserted in your theme files it may have been manually placed previously into your header.php file.
Let me know how you get on.
Hi James,
It’s working. Thank you very much for the guidance. Appreciate it a lot.
Please do me a favor, kindly email me the Site Health report I sent you to [email protected]. I forgot to keep a copy of it and I needed it to cross check.
Thanks & Best Regards,
M.Shafeen
No problem at all, happy to help.
In order to send your Site Health information I can provide it here in a response if you wish, while blocking out your site details?
If you don’t mind I prefer it by email.
Regards
Unfortunately we’re unable to share information outside of the forums as per forum guidelines. I can however paste your details here if preferred, while removing your site details.
Let me know what you prefer. And be sure to share your experience of using Site Kit now that you can make use of the Analytics dashboard within the plugin.
I’m sorry I was not aware of the ruling. It’s okay to share it here.
Will do as you requested.
Regards
Sure, no problem at all, see your Site Health information as provided previously below. Thanks for using Site Kit, and be sure to get in touch should you have any further queries.
SITE HEALTH INFO WP CORE PROPERTY VALUE version 5.3.6 site_language en_US user_language en_US timezone +05:30 permalink /%postname%/ https_status true user_registration 1 default_comment_status open multisite false user_count 254 dotorg_communication true WP PATHS SIZES PROPERTY VALUE wordpress_path /home/***URL/SITE DETAILS REMOVED***/public_html wordpress_size 38.67 MB (40546940 bytes) uploads_path /home/***URL/SITE DETAILS REMOVED***/public_html/wp-content/uploads uploads_size 344.11 MB (360829668 bytes) themes_path /home/***URL/SITE DETAILS REMOVED***/public_html/wp-content/themes themes_size 5.96 MB (6253231 bytes) plugins_path /home/***URL/SITE DETAILS REMOVED***/public_html/wp-content/plugins plugins_size 175.05 MB (183549508 bytes) database_size 24.78 MB (25985024 bytes) total_size 588.57 MB (617164371 bytes) WP DROPINS (1) PROPERTY VALUE advanced-cache.php true WP ACTIVE THEME PROPERTY VALUE name Astra (astra) version 2.3.5 (latest version: 2.6.0) author Brainstorm Force author_website https://wpastra.com/about/ parent_theme none theme_features astra_hooks, align-wide, automatic-feed-links, title-tag, post-thumbnails, html5, post-formats, custom-logo, customize-selective-refresh-widgets, editor-style, woocommerce, amp, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, menus, widgets theme_path /home/***URL/SITE DETAILS REMOVED***/public_html/wp-content/themes/astra WP THEMES INACTIVE (1) PROPERTY VALUE Twenty Twenty version: 1.1, author: the WordPress team (latest version: 1.5) WP PLUGINS ACTIVE (35) PROPERTY VALUE All-in-One WP Migration version: 7.24, author: ServMask (latest version: 7.29) Astra Pro version: 2.5.1, author: Brainstorm Force (latest version: 2.7.0) Better Notifications for WP version: 1.8.3, author: Made with Fuel (latest version: 1.8.4) BigBlueButton version: 3.0.0-beta.4, author: Blindside Networks Click to Chat version: 2.12.1, author: HoliThemes (latest version: 3.0.2) Code Snippets version: 2.14.0, author: Code Snippets Pro Custom Login Page Customizer version: 2.0.1, author: Hardeep Asrani Design Upgrade for LearnDash version: 2.6.5, author: Escape Creative (latest version: 2.7.1) Disable Right Click For WP version: 1.1.6, author: Aftab Muni Disable WooCommerce Bloat version: 2.3, author: ospiotr Elementor version: 2.9.13, author: Elementor.com (latest version: 3.0.13) Elementor - Header, Footer & Blocks version: 1.5.1, author: Brainstorm Force, Nikhil Chavan (latest version: 1.5.3) Head, Footer and Post Injections version: 3.2.1, author: Stefano Lissa Inactive Logout version: 1.9.6, author: Deepen Bajracharya Instructor Role version: 3.4.1, author: WisdmLabs Invisible reCaptcha version: 1.2.3, author: Mihai Chelaru LearnDash Content Cloner version: 1.2.9.2, author: WisdmLabs LearnDash LMS version: 3.2.3.5, author: LearnDash (latest version: 3.2.3.6) LearnDash LMS - Course Grid version: 1.6.0, author: LearnDash LearnDash LMS - Notifications version: 1.3.1, author: LearnDash (latest version: 1.4.1) LearnDash LMS - WooCommerce Integration version: 1.8.0, author: LearnDash (latest version: 1.9.0) LearnDash ProPanel version: 2.1.3.1, author: LearnDash (latest version: 2.1.4) Mailchimp for WooCommerce version: 2.4.1, author: Mailchimp (latest version: 2.4.7) Peter's Login Redirect version: 2.9.7, author: Peter Keung Simple Custom CSS version: 4.0.4, author: John Regan, Danny Van Kooten Site Kit by Google version: 1.19.0, author: Google Starter Templates version: 2.3.2, author: Brainstorm Force (latest version: 2.3.8) UpdraftPlus - Backup/Restore version: 1.16.34, author: UpdraftPlus.Com, DavidAnderson User Menus version: 1.2.3, author: Code Atlantic (latest version: 1.2.4) WebXpay version: 1.1, author: WebXpay Weglot Translate version: 3.1.9, author: Weglot Translate team (latest version: 3.2.0) WooCommerce version: 4.0.1, author: Automattic (latest version: 4.6.1) WooCommerce Subscriptions version: 3.0.9, author: WooCommerce WP-Optimize - Clean, Compress, Cache version: 3.1.4, author: David Anderson, Ruhani Rabin, Team Updraft WPForms Lite version: 1.6.1, author: WPForms (latest version: 1.6.3.1) WP PLUGINS INACTIVE (10) PROPERTY VALUE Akismet Anti-Spam version: 4.1.5, author: Automattic (latest version: 4.1.7) CartFlows version: 1.5.6, author: CartFlows Inc (latest version: 1.5.20) Hummingbird version: 2.4.2, author: WPMU DEV (latest version: 2.6.2) LearnDash GravityForms Addon version: 2.1.1, author: LearnDash LearnDash Multilingual Integration version: 1.0.0, author: LearnDash User Switching version: 1.5.6, author: John Blackbourn & contributors WooCommerce Services version: 1.23.2, author: Automattic (latest version: 1.25.1) WP Super Cache version: 1.7.1, author: Automattic Yoast SEO version: 14.4.1, author: Team Yoast Zoom Video Conferencing on WordPress version: 3.1.2, author: Deepen Bajracharya/Adeel Raza WP MEDIA PROPERTY VALUE image_editor WP_Image_Editor_Imagick imagick_module_version 1802 imagemagick_version ImageMagick 7.0.10-10 Q16 x86_64 2020-07-09 https://imagemagick.org imagick_limits imagick::RESOURCETYPE_AREA 126 GB imagick::RESOURCETYPE_DISK 9.2233720368548E+18 imagick::RESOURCETYPE_FILE 187500 imagick::RESOURCETYPE_MAP 126 GB imagick::RESOURCETYPE_MEMORY 63 GB imagick::RESOURCETYPE_THREAD 1 gd_version bundled (2.1.0 compatible) ghostscript_version 9.25 WP SERVER PROPERTY VALUE server_architecture Linux 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 x86_64 httpd_software LiteSpeed php_version 7.2.34 64bit php_sapi litespeed max_input_variables 1000 time_limit 600 memory_limit 256M max_input_time -1 upload_max_size 128M php_post_max_size 128M curl_version 7.71.0 OpenSSL/1.1.1d suhosin false imagick_availability true htaccess_extra_rules true WP DATABASE PROPERTY VALUE extension mysqli server_version 10.2.33-MariaDB-cll-lve client_version 10.2.33-MariaDB WP CONSTANTS PROPERTY VALUE WP_HOME undefined WP_SITEURL undefined WP_CONTENT_DIR /home/***URL/SITE DETAILS REMOVED***/public_html/wp-content WP_PLUGIN_DIR /home/***URL/SITE DETAILS REMOVED***/public_html/wp-content/plugins WP_MAX_MEMORY_LIMIT 256M WP_DEBUG false WP_DEBUG_DISPLAY true WP_DEBUG_LOG false SCRIPT_DEBUG false WP_CACHE true CONCATENATE_SCRIPTS undefined COMPRESS_SCRIPTS undefined COMPRESS_CSS undefined WP_LOCAL_DEV undefined DB_CHARSET utf8mb4 DB_COLLATE undefined WP FILESYSTEM PROPERTY VALUE wordpress writable wp-content writable uploads writable plugins writable themes writable WPFORMS PROPERTY VALUE version 1.6.1 license false lite Mar 28, 2020 @ 3:04pm total_forms 4 total_entries 52 GOOGLE SITE KIT PROPERTY VALUE version 1.19.0 php_version 7.2.34 wp_version 5.3.6 reference_url https://***URL/SITE DETAILS REMOVED*** amp_mode no site_status connected-site user_status authenticated connected_user_count 1 active_modules site-verification, search-console, analytics, pagespeed-insights required_scopes openid ? https://www.googleapis.com/auth/userinfo.profile ? https://www.googleapis.com/auth/userinfo.email ? https://www.googleapis.com/auth/siteverification ? https://www.googleapis.com/auth/webmasters ? https://www.googleapis.com/auth/analytics.readonly ? search_console_property ***URL/SITE DETAILS REMOVED*** analytics_account_id none analytics_property_id none analytics_profile_id none analytics_use_snippet yes
Thank you for the awesome support.
Have a good day.
No problem, thanks for using Site Kit. And be sure to share your experience as a user of the plugin.
- The topic ‘Issue with existing analytics tag’ is closed to new replies.