Jump to content



Member Since 17 Nov 2016
Offline Last Active Dec 03 2016 12:45 PM

Topics I've Started

Google Analytics: All Landing Pages Are (Not Set)

29 November 2016 - 07:16 AM

I updated my CS-Cart 2.2.4 to CS-Cart 4.36.

And now Google analytics shows (not set) to landing pages.


Check this:



All my pages have sessions. I can see revenue, conversion rate etc.. Only thing that does not work is the landing pages for conversions. This workes perfectly with CS-Cart 2.2.4.


I am using the GA addon what comes with CS-Cart. (There was a problem with GA not showing revenue but Cs-Cart crew fixed it. But they wont to help with this landing page problem. ??)


Thank you for your help.

How Redirect (301) Non-Www To A Www

17 November 2016 - 09:06 AM



How can I redirect non-www url to www?


When I use www.my-domain.com it goes to my-domain.com.

But I want it to be always www.my-domain.com.


I have tried to add these three options (one by one), to my .htaccess but they dont work (website does not load):


RewriteCond %{HTTP_HOST} ^my-domain.com
RewriteRule (.*) http://www.my-domain.com/$1[R=301,L]


RewriteCond %{HTTP_HOST} ^my-domain.com [NC]
RewriteRule ^(.*)$ http://www.my-domain.com/$1[L,R=301]


RewriteCond %{http_host} ^my-domain.com [nc]
RewriteRule ^(.*)$ http://www.my-domain.com/$1[r=301,nc]


This is what I have in the .htaccess:

<IfModule mod_rewrite.c>

RewriteEngine on

        RewriteCond %{REQUEST_URI} .*\/aw2\.html
    RewriteRule ^.*$ http://my-domain.com[L,R=301]
# Please note that RewriteBase setting is obsolete use it only in case you experience  some problems with SEO addon.
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is http://www.yourcompany.com/store/cart
# So "RewriteBase" should be:
# RewriteBase /store/cart
RewriteBase /
Options -MultiViews

RewriteRule ^init.php$ - [F,L,NC]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteCond %{REQUEST_URI} ^api/(.*)$ [or]
RewriteCond %{REQUEST_URI} .*/api/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*api/(.*)$ api.php?_d=$1 [L,QSA]

RewriteCond %{REQUEST_URI} \.(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff|yml|xml)$ [or]
RewriteCond %{REQUEST_URI} store_closed.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)\/(.*)$ $2 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L,QSA]



Thank you very much for your help. =)