Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart Mobile module released

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #171  
Old 03-19-2014, 12:24 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: X-Cart Mobile module released

Quote:
Originally Posted by HeatherV
Hello all,
I have been reading this whole thread with interest. I have just installed the mobile module (well my developer has) and I wondered if anyone else had experienced loss of mobile data on Google analytics? If I am on real time on analytics it now doesn't show me if a mobile is on my site (so I guess it doesn't record this at all now?). If I switch from the mobile site to the desktop site it then shows on real time there is a mobile viewing the website.

Just checked the template files and /skin/common_files/modules/xcart_mobile/customer/service_js.tpl does call Google Analytics

Line 58

Code:
{if $active_modules.Google_Analytics and $config.Google_Analytics.ganalytics_version eq 'Asynchronous'} {include file="modules/Google_Analytics/ga_code_async.tpl"} {/if}

Does the code above state that analytics will only kick in if you're running in Asynchronous mode?
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #172  
Old 03-19-2014, 03:54 AM
 
suehamil suehamil is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 96
 

Default Re: X-Cart Mobile module released

Hi
I'm Heathers developer.
In response to your question; we are using google async. Prior to the installation of x-cart mobile Heather was able to track in real time and record mobile visitors. It's only since the installation that this has disappeared.

I've run an eye over the code and everything seems to be in order.

Sue
__________________
X-Cart DB Version: 4.7 GOLD
3rd Party Addons:
XMenus Responsive
XBanners2
Skin: Fashion Walk
Reply With Quote
  #173  
Old 03-19-2014, 04:36 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: X-Cart Mobile module released

If you view the source code of the page (whilst in mobile mode) can you see the analytics code?
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #174  
Old 03-19-2014, 04:45 AM
 
suehamil suehamil is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 96
 

Default Re: X-Cart Mobile module released

Aha! No, using the firefox add-on to change the user agent to iphone3 the google analytics code disappears.
So should I remove the if completely or just take out the
and $config.Google_Analytics.ganalytics_version eq 'Asynchronous'
do you think doing either of these will mean that the visit will be logged as coming from a mobile?
__________________
X-Cart DB Version: 4.7 GOLD
3rd Party Addons:
XMenus Responsive
XBanners2
Skin: Fashion Walk
Reply With Quote
  #175  
Old 03-19-2014, 04:48 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: X-Cart Mobile module released

That's interesting ... Can you ensure that the option ' Google Analytics code version' within the X-Cart module is set to Asynchronous as well rather than 'Traditional'

See - http://awesomescreenshot.com/0492il1392
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #176  
Old 03-19-2014, 04:53 AM
 
suehamil suehamil is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 96
 

Default Re: X-Cart Mobile module released

Hi
I think we had this issue previously when dealing with the e-commerce tracking, the option to set to asynchronous isn't available in 4.4.4 gold so I had to do a bit of tweaking to get the async to work. Sorry off hand I can't remember exactly what I did, but I do know that currently both the ga_code_async.tpl and ga_code.tpl have the same content.

Sue
__________________
X-Cart DB Version: 4.7 GOLD
3rd Party Addons:
XMenus Responsive
XBanners2
Skin: Fashion Walk
Reply With Quote
  #177  
Old 03-19-2014, 05:03 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: X-Cart Mobile module released

Oh .. In which case just replace:

Code:
{if $active_modules.Google_Analytics and $config.Google_Analytics.ganalytics_version eq 'Asynchronous'}

with

Code:
{if $active_modules.Google_Analytics}

HTH

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #178  
Old 03-19-2014, 05:24 AM
 
suehamil suehamil is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 96
 

Default Re: X-Cart Mobile module released

Thanks Shafiq
That's what I thought.
Thank you for all your help and taking the time.
Sue
__________________
X-Cart DB Version: 4.7 GOLD
3rd Party Addons:
XMenus Responsive
XBanners2
Skin: Fashion Walk
Reply With Quote
  #179  
Old 03-19-2014, 05:26 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default Re: X-Cart Mobile module released

Great... I wasn't aware that 4.4.4 Gold didn't have the 'asynchronous' option.
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #180  
Old 03-19-2014, 05:30 AM
 
suehamil suehamil is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 96
 

Default Re: X-Cart Mobile module released

I think it was pre asynch
__________________
X-Cart DB Version: 4.7 GOLD
3rd Party Addons:
XMenus Responsive
XBanners2
Skin: Fashion Walk
Reply With Quote
Reply
   X-Cart forums > News and Announcements



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:22 AM.

   

 
X-Cart forums © 2001-2020