frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
21.99k stars 7.37k forks source link

Desk not showing after pasting google analytics script in HTML HEADER & ROBOTS section of website setting #14850

Open erpwala opened 6 years ago

erpwala commented 6 years ago

n", "hide_footer_signup": 0, "home_page": "homepage", "idx": "0", "modified": "2018-07-09 15:10:24.440345", "modified_by": "jawahar.mallah@netmanthan.com", "name": "Website Settings", "navbar_search": 0, "owner": "Administrator", "top_bar_items": [ { "creation": "2018-07-08 14:55:12.344095", "docstatus": 0, "doctype": "Top Bar Item", "idx": 1, "label": "Contact", "modified": "2018-07-09 15:10:24.440345", "modified_by": "jawahar.mallah@netmanthan.com", "name": "bb5425dc65", "owner": "Administrator", "parent": "Website Settings", "parentfield": "top_bar_items", "parenttype": "Website Settings", "right": 0, "url": "/contact" }, { "creation": "2018-07-08 14:55:12.344095", "docstatus": 0, "doctype": "Top Bar Item", "idx": 2, "label": "Blog", "modified": "2018-07-09 15:10:24.440345", "modified_by": "jawahar.mallah@netmanthan.com", "name": "604597e701", "owner": "Administrator", "parent": "Website Settings", "parentfield": "top_bar_items", "parenttype": "Website Settings", "right": 0, "url": "/blog" }, { "creation": "2018-07-08 14:55:12.344095", "docstatus": 0, "doctype": "Top Bar Item", "idx": 3, "label": "Products", "modified": "2018-07-09 15:10:24.440345", "modified_by": "jawahar.mallah@netmanthan.com", "name": "c76755e82b", "owner": "Administrator", "parent": "Website Settings", "parentfield": "top_bar_items", "parenttype": "Website Settings", "right": 0, "url": "/products" } ], "website_theme": "Standard" } }; frappe.csrf_token = "cfeda755a65c89b5040e73814911ce3d4194a3d63832dbc189395fc2";

_Desk not showing after pasting google analytics script in HTML HEADER & ROBOTS section of website setting showing above error_ (Desk Not showing after successful login, its shows above message)

below is the code what i pasted.

jigneshpshah commented 6 years ago

Same Issue . Desk not showing after pasting google analytics script in HTML HEADER & ROBOTS section of website setting.

Tested on ERPNext Cloud ERPNext: v10.1.46 (master) Frappe Framework: v10.1.45 (master)

If we enter just the Analytics ID in Website > Integration > image

and then if we check the source of the webpage, the analytics script code is missing.

Any solution to use Google Analytics on website. As this is a critical feature.

generare commented 6 years ago

Still having this issue?

jaichavan commented 5 years ago

Hello, @jigneshpshah does the issue persist?

jigneshpshah commented 5 years ago

Checked on ERPNext: v11.0.3-beta.34 () (staging) Frappe Framework: v11.0.3-beta.48 () (staging)

Desk not showing after pasting google analytics script in HTML HEADER & ROBOTS section of website setting.

parsimonyERP commented 5 years ago

Is this a solution?: https://discuss.erpnext.com/t/urgent-help-please/24609

jigneshpshah commented 5 years ago

No. That is just how to erase the script code from the database table instead of website settings doctype.

But it seems , there is no solution of how we can use google analytics code. There are two options 1) to put the google analytics id in the website settings > Integration section. After putting it , when we see any webpage > view source , we don't find the google script code

2) is to put the google script code directly to the Website Settings > HTML Header section. After putting it, we are able to see the google script code in any web page, but we are not able to access the desk.

zerodiscount commented 5 years ago

Seems tracking is working with just using the Google Analytics ID (without putting the script under HTML header)?? I just tried with the ID and google analytics console is showing the correct number of users in real time.... (including mobile versus desktop).

jigneshpshah commented 5 years ago

Great..Could you please specify the version on which you tested..

zerodiscount commented 5 years ago

v11.1.14. Using the script though does cause the above error. Also do not know if all analytics are being captured correctly without the script...

garyritchie commented 4 years ago

This just happened to me, running v12.3.9.

What's the process to undo the GA script addition so I can access Desk?

jigneshpshah commented 4 years ago

Just go to the database and update tabsingles table and update the head field value of website settings.

garyritchie commented 4 years ago

To confirm, there's no Google Analytics tracking code in my site, despite putting the code into Website Settings --> INTEGRATIONS --> Google Analytics ID.

Hoping there's a fix or workaround soon.

1zaak commented 3 years ago

Not working for me as well.

...there's no Google Analytics tracking code in my site, despite putting the code into Website Settings --> INTEGRATIONS --> Google Analytics ID.

ImtiyazAM commented 1 year ago

Hi Everyone. I was trying to integrate google analytics with erpnext by adding google analytic measurment ID, But its not connecting. in the google analytic dashboard its showing like this "Data collection isn’t active for your website. If you installed tags more than 48 hours ago, make sure they are set up correctly". Do i need to add Google tag manually anywhere in the erpnext page?

khab1 commented 1 month ago

Did you manage to get it working? @ImtiyazAM . I have the same issue on v15.37.0