We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Google analytics on mobile version | Forum

Topic location: Forum home » Support » General Questions
fouad
fouad Mar 26 '15
Hi,


I have checked the forum but not found any work around for enabling Google Analytics for mobile version of oxwall. It seems adding code to header only applies to the desktop version.


Has anyone got any advice on how to apply GA on all pages of website in mobile version?


Would certainly love to hear of any successful work-around.

ross Team
ross Mar 26 '15
Topic was moved from Bug reports and troubleshooting.
fouad
fouad Mar 27 '15
Hey all,


so Nobody has an idea!? weird!

fouad
fouad Mar 27 '15
Here is what I ended up doing to catch mobile visitors; I inserted the Google Analytics code using Language settings in the home page of mobile settings section. It is working well.



Taissa Team
Taissa Mar 30 '15
fouad, thank you for sharing the solution.

You also can add the GA code directly via the theme mobile version folder in the /mobile/master_pages/mobile_html_document.html file.

Once the changes are made don't forget to clear the browser cache and the smarty cache (DEV_MOD, use this manual:https://docs.oxwall.org/plugin-tuts:enable-debug ).
The Forum post is edited by Taissa Mar 30 '15
OW-Ghost
OW-Ghost Apr 3 '16
fouad can you explain how you did that in more details??


i want to do same


Talssa version will bee overwrite when update comes i think languages is not overwrites if a update coming

ross Team
ross Apr 4 '16
go the language section in the admin panel


choose Mobile in the drop down search menu


then find Mobile Index page. See screenshot. Add your code there. 

Attachments:
  Screenshot from 2016-04-04 11:09:26.png (200Kb)
OW-Ghost
OW-Ghost Apr 5 '16
this one? {text key='mobile+mobile_admin_pages_index'} 


or this one?


{text key='mobile+widgets_admin_index_heading'}


tell me what i write in that text field just the code and delete the default text? and tell what keys of this 2 i need pick

The Forum post is edited by OW-Ghost Apr 5 '16
ross Team
ross Apr 5 '16

try this one: mobile+widgets_admin_index_heading


I can't tell you for sure whether you should delete the default text or leave it. It will be better if you insert your code in the master page of the mobile to make it work. Personally I prefer this option better. 

The Forum post is edited by ross Apr 5 '16
OW-Ghost
OW-Ghost Apr 6 '16
ok thanks ross i will try that
ross Team
ross Apr 6 '16
Keep us updated how that works for you. 
Onur
Onur Oct 22 '16
when i add my javascript code. it is not more opening mobile version :(
ross Team
ross Oct 24 '16
What does your javascript code do? 
Onur
Onur Nov 24 '16
after when i add it is white page
ross Team
ross Nov 24 '16
Please provide your code, we'll check it.. 
James Geddes
James Geddes Nov 27 '16
Disable the mobile version! It creates an entirely distinct site that needs to be looked after separately. Use a responsive theme, which will let google see everything.