简体   繁体   中英

Magento iPhone Theme not trackable in Google Analytics

I've enabled the Magento iPhone Theme for my mobile visitors (ipod,iphone,ipad, android etc) but it seems there is some kind of bug with Google Analytics. After the enabling all mobile visitors are provided with the iphone theme but they're NOT TRACKABLE anymore in Google Analytics.

I'm using Magento 1.7.0.2 and an older version of the iPhone theme

You could use a browser plugin to simulate a mobile user agent, then the mobile theme should be loaded.

  1. Check the developer toolbar for JS-Errors. To open it hit F12 -> console.
  2. Check the sourcecode of the page (right click, show source) and search for the snippet. It looks like this:

     _gaq.push(['_setAccount', 'your_account']); _gaq.push(['_trackPageview']); 

Update The snippet is added, when ga is enabled for your store and you id is set. Both seems to be the case as it works for your normal template. Try to copy app\\design\\frontend\\base\\default\\layout\\googleanalytics.xml to your templates layout folder and clear cache.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM