Custom Web Designs by Bay Area Web Design Company MJS Web Solutions Building Websites That Can
   Actually be Found
Contact Us | Our Company | Home
510.523.7312
MJS Web Solutions Blog
Thoughts :: Opinions :: Trends

Monday, May 17, 2010
Google Analytics Not Working With Magento

Magento LogoWe were having a heck of a time trying to figure out why Google Analytics wasn’t capturing any data with a new Magento eCommerce (V 4.1) website we just built.

We added the Google Analytics account ID within the admin area, but no results.

We then noticed the error:  _gaq is not defined being displayed from the browser.

Searching through the Magento community, Google search and blogs we were given various fixes and advice that suggested replacing the original code or updating the Magento core files. We did not want to change the existing code or core files because we wanted our client to be able to use the eCommerce portion of Google Analytics with Magento and we’re suspect about some of the fixes.

So we took matters into our own hands.

Since the error was not being defined, we defined it.

  1. Open /app/design/frontend/default/yourtemplate/page/html/head.phtml
  2. Add the code var _gaq = _gaq || []; on line #38 to the head tag of the head.phtml file after var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
  3. Refresh your Magento Cache
  4. In a few hours Google Analytics should start registering your data.

I hope this helps others who may be experiencing the same issue.

Posted by: Michael Swartz at 4:55 pm

Comments: None | Filed under: HTML, SEO, Web Design


Thursday, April 29, 2010
How to Remove the Blogger NavBar?

Blogger LogoWe’re doing many Blogger conversions this month and Blogger has decided to keep the Blogger Navbar intact. (i.e. we can’t switch it off).

We’re not a big fan and wanted to remove it.

Here is how we removed the Blogger NavBar.

  1. Login to Blogger
  2. Click on the Template tab
  3. Add this code to the <head> tag:<style type="text/css">
    #navbar-iframe {
    display: none !important;
    }</style>
  4. Click the Save Template Changes button
  5. You’re done

Posted by: Michael Swartz at 3:40 pm

Comments: None | Filed under: HTML


Tuesday, April 13, 2010
Convert Your Website Design Files to SEO Friendly HTML Code

MJS Web Solutions, not only designs websites from the ground up, we also can convert an existing design or mockup to SEO (search engine optimization) friendly HTML code.

We noticed, Luna Packaging, a client of ours had redesigned their website, except each page was an image. The design looked great, but Google and other search engines could not index the text, because the text was an image. We notified our client and got the okay to redesign the site by converting the existing design images to SEO friendly HTML code.

Luna Packaging & Autism Answers Websites

Luna Packaging & Autism Answers Websites

A new client of ours, Autism Answers, came to us needing to re-build their website. Each page on their website were also images, not HTML code and text. Again, we converted the design image files into SEO friendly HTML code.

Now each website is:

  • much faster to download
  • easier to maintain
  • And being index by the search engines.

Is your site one big image? If so, it’s not getting the traffic it deserves.

MJS Web Solutions offers a full variety of website services that are focused on enriching your customers experience and getting traffic to your website.

Posted by: Michael Swartz at 5:46 pm

Comments: None | Filed under: HTML, News, SEO, Web Design


Wednesday, August 12, 2009
IE6 Multiple Class Selector Hack

IE6 SucksA client’s new website was not displaying correcting in Internet Explorer 6 (Wow, what a surprise…not!). It look fine in every other browser.

Usually I create a separate ie6fix.css file and I’m done, but this problem was a doosey.

IE6 doesn’t recognize two classes for one element. For example: <a class="one two"></a>

I was trying everything to get the navigation rollover to work. It wasn’t until I found this post, by Bennett of Thunderguy.com.

Adding another class and separating the two with a hyphen works. Unbelievable! What a hack.

Like this: <a class="one two one-two"></a>

He saved me more agonizing hours of pain. Thanks Bennett and kudos to you.

Now I’m here to help share this hack with everyone else, but the biggest help I, as a webmaster, can give is if everyone stopped using IE6 and upgraded. Microsoft is now on version 8. There is no good reason to keep using this antiquated browser that doesn’t conform to the new standards of the internet.

Photo credit from IE Sucks

Posted by: Michael Swartz at 5:16 pm

Comments: None | Filed under: HTML, Web Design


Tuesday, May 12, 2009
CSS Compatibility Mode Fix for Internet Explorer 8

ie8My recent post about IE8 has launched it’s ugly head.

A client of ours contacted us to let us know after they downloaded the new Internet Explorer 8 there site looked messed up.

Knowing this was going to be a problem, Microsoft created a button called ‘Compatibility View‘ so users could view websites in the older version of their browser.

But this was not a work around for our client.

Instead of fixing (or hacking) all the code on the website I added the following code recommended by Microsoft:

<html>
<head>
<!-- Mimic Internet Explorer 7 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
<title>My Web Page</title>
</head>
<body>
<p>Content goes here.</p>
</body>
</html>

It worked!

This is truly a work around – a Microsoft work around. Microsoft knew full well that their new browser couldn’t view perfectly good standard coded websites, so they had to come up with a way to view websites as if you were using their old browser.

What a joke. It’s no wonder why Microsoft is losing market share to Firefox and Apple.

Posted by: Michael Swartz at 6:23 pm

Comments: 23 Comments | Filed under: HTML, Web Design


Wednesday, December 12, 2007
Creating Branded HTML Emails in Outlook

Hello.

We’ve been creating many HTML email newsletters recently, but today we received a question about just sending out branded emails. You know, emails with your logo and stuff.

In Microsoft Outlook, it’s easy.

Outlook Stationary

To brand your own email though will require you to create a HTML file. You can do this in any HTML editor like Dreamweaver. Then import it into Outlook.

Don’t forget to test your email, making sure it looks good in all the popular email programs like Gmail, Yahoo, etc.

Mike Swartz says, “Check it out”.

Posted by: Michael Swartz at 9:28 am

Comments: 2 Comments | Filed under: Computer, HTML


Support  |  Partners  |  Site Map
Alameda Chamber of Commerce Member
West Alameda Business Association Member (WABA)
© Copyright 2010 MJS Web Solutions Blog. All rights reserved.
Powered by Westhost and WordPress.
Log in