[英]Wordpress admin theme options get empty and some script error shown after added the google anaytics code
我需要你的一點幫助。
一切工作正常,它仍然是,但是發生了什么,我在“主題選項”下將谷歌分析代碼添加到WP-admin中,突然之間,“主題選項”下的所有內容都變為空白,我可以在底部看到一些代碼頁面后端的同一位置。
能否請您查看以下屏幕截圖,並提供一些解決方案來解決此問題。
謝謝,
Arularasan D.
我分四個步驟解決了這個問題,
1. Exported the phpmyadmin sql files.
2. Opened the sql files in text editor and Search the keyword 'google_analytics'.
3. Removed this code :"google_analytics_tracking_code": "<script>\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n ga('create', 'UA-5772415-2', 'rastergraphix.com.au');\n ga('send', 'pageview');\n\n</script>"
4. Finally imported the modified sql files in phpmyadmin.
終於解決了js問題,解決了管理端主題選項為空的問題。
您能否在管理主題選項窗口中說明如何添加Google Analytics(分析)代碼。
謝謝,Arularasan D.高級PHP程序員。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.