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?
Related
I'm using default magento 1.9.x Recently Viewed Products block on a CMS page
{{block type="reports/product_viewed" template="reports/product_viewed.phtml"}}
But default magento Recently Viewed Products block only support for logged in users, so it only show when i logged in
I checked the file
/public_html/app/code/core/Mage/Reports/Block/Product/Abstract.php
and It's line number 138 function set a customer id for product collection for filter the results.
But i think normal site visitors not have that kind of id.
if ($this->getCustomerId()) {
$this->_collection->setCustomerId($this->getCustomerId());
}
Anyone know how to get recently viewed products by setting an id to above or by using another way.
i also tried this answer but it didn't work at all
How to get Recently View Product For Guest User In Magento
Step 1 : Go to Admin ->CMS->Pages->AnyCmsPage
Step 2 : Go to-> AnyCmsPage-> Design
Step 3 :Copy and Pase the following code in Layout Update XML
<reference name="content">
<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
Magento version 1.9.1.0
I want to completely remove customer account creation, account pages, login pages, everything. Please advise.
This is how I would do it: create or edit your theme’s local.xml file under layout like this:
<default>
<reference name="top.links">
<action method="removeLinkByUrl"><url helper="customer/getAccountUrl"/></action>
</reference>
</default>
This will remove My Account top link.
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>.
I have some critical issues with magento's order. When I have enabled paypal standard payment method, after that orders are not showing in My Account section. I have enabled IPN too. But its also doesn't work for me. I am using Magento 1.7.0.2 version. And I am sure it issues created for enabled paypal standard payment.
Thank you in advanced !
I think you're saying, the pending payments are not showing in the customer dashboard. To solve this, you need to edit one config.xml from any active module, and, instead of the tag, put this code:
<sales>
<order>
<states>
<pending_payment>
<visible_on_front>1</visible_on_front>
</pending_payment>
</states>
</order>
</sales>
Then, it shhould now show the pending payments in the customer dashboard.
Actually Eder is nto entirely correct. You have to overwrite the core file Mage/Sales/etc/config.xml and find in line 1319 the section which defines the pending_payment.
Then add the line of code:
<visible_on_front>1</visible_on_front>
This is how my config.xml looks like:
<pending_payment translate="label">
<label>Pending Payment</label>
<statuses>
<pending_payment default="1"/>
</statuses>
<visible_on_front>1</visible_on_front>
</pending_payment>
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.