I am new to magento and I have placed my account number in my system > Configuration > Sales > Google API. I have also enabled Google Analytics. But still I can't see the Google Analytics code on any of my magento application. What I have double checked are:
Account Number are proper (These are for the same domain name for which we are trying).
Google Analytics is Enabled (Yes).
Same here. It turns out that the problem was caused by my customized theme that was developed for magento 1.5 and now is applied to 1.7.
In app/design/frontend/mytheme/layout/googleanalytics.xml i had:
<block type="googleanalytics/ga" name="google_analytics" as="google_analytics" />
And it should be:
<block type="googleanalytics/ga" name="google_analytics" as="google_analytics" template="googleanalytics/ga.phtml" />
Have just checked and the google analytics code is normally placed in the after_body_start block.
If that block isn't used in your theme or if you just want to follow better practices change that to before_body_end. You can find the file "googleanalytics.xml" in your theme's layout directory or in app/design/frontend/base/default/layout.
Related
I am a newcomer to magento. During the learning process, I want to know how to add a block to the bundled product page. The piece of information I found through google doesn't know what to do with it.
It depends on where you want to put it, and I am assuming that you have a theme setup with a local.xml file, but you could also add that part in the product's edit page in Admin->Manage Products->Edit Product->Design->Custom Layout Update.
The xml, added in app/design/frontend/[your-theme]/[your-subtheme]/layout/local.xml
<PRODUCT_TYPE_bundle>
<reference name="content">
<block name="yourtheme_yoursubtheme_nameofblock" type="core/text" template="path/to/your/template.phtml" />
</reference>
</PRODUCT_TYPE_bundle>
This will add the output of app/design/frontend/[your-theme]/[your-subtheme]/template/path/to/your/template.phtml at the bottom of every bundle-type product page. You may want to read up on Magento Layout XML
Most of my images cannot be found in the Google Image Search.
I have submitted Google Sitemaps. There are no problems reported on Search Console, but only 1 image out of 34 is indexed. I suspect my multi-language setup could be a problem.
I have a website with serves output in different languages. For each language I have a subdomain: de.openisles.org and en.openisles.org.
For each of the language domains I have a sitemap, for example with the language-dependent text.
My sitemap entries look like this:
<!-- de.openisles.org/sitemap.xml -->
<url>
<loc>http://de.openisles.org/media/screenshots/2016-01-03-demanded-goods.html</loc>
<image:image>
<image:loc>http://static.openisles.org/media/screenshots/2016-01-03-demanded-goods.png</image:loc>
<image:caption>Infopanel: verlangte Güter</image:caption>
</image:image>
</url>
<!-- en.openisles.org/sitemap.xml -->
<url>
<loc>http://en.openisles.org/media/screenshots/2016-01-03-demanded-goods.html</loc>
<image:image>
<image:loc>http://static.openisles.org/media/screenshots/2016-01-03-demanded-goods.png</image:loc>
<image:caption>Info panel: Demanded goods</image:caption>
</image:image>
</url>
The two websites link each other, so that Google knows it's the same content in another language.
<link rel="alternate" hreflang="de" href="http://de.openisles.org/media/screenshots/2016-01-03-demanded-goods.html" />
<link rel="alternate" hreflang="en" href="http://en.openisles.org/media/screenshots/2016-01-03-demanded-goods.html" />
Because images are not language-dependent (I do not want them to be) I have an additional subdomain static.openisles.org. To tell Google that my static server belongs to me, I added this subdomain also in the Search Console.
My question is simple: What am I doing wrong? Why is Google not indexing my images?
It's entirely possible that nothing is wrong with your sitemap, especially if Google Search Console doesn't say anything.
Google has its own algorithm for what to index and what not to index, and submitting a sitemap does not guarantee indexing; it only helps Google to more fully map out your website, if it decides to crawl it.
I've submitted a sitemap for a library with contained 4,000,000 urls, but its been close to a month now and Google's only indexed around 14,000.
I think the fact that even one of your images has been indexed is a good sign - Google was able to find it! Have patience, my friend, and I think you'll find the other images will slowly get indexed as well.
Best of luck!
I am using Magento version 1.7.0.2 and I set MAP feature in my site.
MAP feature work perfectly in category listing and product detail page but in home page its give me js error.
Reference Error: Catalog is not defined
Anybody know how can I resolve it?
ok. After some research I got the solution.
To make MAP pop-up work on the home page, add these code in local.xml of your theme:
<cms_index_index>
<update handle="MAP_popup" />
</cms_index_index>
It should be added somewhere between <layout> and </layout>.
Guys where can i find template that rendering SIGN UP FOR OUR NEWSLETTER on footer of magento template?
Thanks.
you can go throw this step to show from where is comes from
1. Open the admin control panel
2. Open the system tab and select configuration
3. Select Main Website or Name of your website (NOT DEFAULT CONFIG) from the Current 4.Configuration Scope drop down
5.Select Developer on the left sidebar
6.Open the Debug drop down
7.Set Template Path Hints To Yes
Click on Save Config to save down your changes
And also you can find in your xml like this
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
just check which is your parent tag.
Alternate Solution:
go to the template file: app\design\frontend\package\theme\template\page\html\footer.phtml
and place the following script in it, you needs.
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
I followed the procedure of inserting google analytics to my magento website.
Signed in my Google analytics account and got my : TrackingID : UA-.....
In Magento: Configuration -> Sales -> google API -> google analytics : enable=yes, account number=UA-......
nevertheless I see in google analytics : Tracking not installed and on the magento pages not a sign of the tracking code.
in my ftp I see: /app/design/frontend/base/default/layout/googleanalytics.xml that contains:
<reference name="after_body_start">
<block type="googleanalytics/ga" name="google_analytics" as="google_analytics" />
</reference>
Whats wrong?