0

Magento Plugin [Deprecated]

Official support from Segment for this plugin is deprecated. The current version of this plugin should be free of bugs but any existing and future development will be paused for the time being. We recommend exploring and using third party alternatives.

We are currently looking for community maintainers!  If you’re interested in maintaining or contributing to our Magento plugin, we'll gladly send some Segment swag your way in return for any merged PRs. Don't forget to give us a heads up via our contact form when you submit a PR.   


Overview

Our Magento extension lets you send your ecommerce analytics data to any of our integrations without writing any code yourself. You can be up and running with a complete ecommerce tracking setup in minutes!

The extension automatically collects information about the customer, which pages they visit, which products they add and remove from their cart, and which orders they complete.

Getting Started

The recommended way to install the Magento extension is via the Magento Connect marketplace:

  1. Inside your Magento Admin navigate to System > Magento Connect > Magento Connect Manager.
  2. Re-enter your login credentials.
  3. Under the Install New Extensions section, paste this key:
    1. http://connect20.magentocommerce.com/community/analytics
  4. Click the Install button, and the plugin should install automatically.
  5. Go back to your main Magento Admin, and navigate to System > Configuration.
  6. Choose the General > Analytics section from the sidebar.
  7. Expand the Segment section of the page, and paste in your source’s Write Key and click Save Config.

That’s it, you’re done! You’ll automatically be identifying customers and recording their actions as they move around your Magento store.

Now just turn on any of our integrations in Segment on your integrations page and we’ll start sending your data to them for you!

Common Questions

What customer information does it record automatically?

We automatically identify customers that are logged in to your Magento store with all of the information stored about them in the Magento database. This includes fields like first_namelast_nameemailgender, etc.

Which actions does it record automatically?

Just by installing the plugin, without touching any code, we’ll already be recording events when the customer visits your store’s pages, and when they perform certain Ecommerce-specific actions:


Viewed Product

 

When the customer views a product listing.

Viewed Product Reviews

 

When the customer views the reviews for a specific product.

Added Product

 

When the customer adds a product to their shopping cart.

Removed Product

 

When the customer removes a product from their shopping cart.

Reviewed Product

 

When the customer submits a review for a product.

Wishlisted Product

 

When the customer adds a product to their wishlist.

Order Completed

 

When the customer completes an order.

Registered

 

When the customer signs up for an account.

Logged In

 

When the customer logs in to their account.

Logged Out

 

When the customer logs out of their account.

Searched Products

 

When the customer searches for products.

Filtered Products

 

When the customer filters product listings.
Subscribed Newsletter When the customer subscribes to your newsletter.

We also automatically add useful properties to the events when applicable. For example, the Order Completed event includes information about each product in the order, and the Searched Products events include a query property of what the customer searched for.

Tracking Custom Events

For the most basic install, you’re already good to go. If you’d like to add your own custom tracking to your Magento store, you can add Javascript directly to any page.

Here’s the Javascript you would add to track a custom event:

analytics.track('Shared Product', {
  platform: 'Facebook',
  name: 'Diplomacy',
  category: 'Toys & Games',
  manufacturer: 'Avalon Hill',
  price: 22.68
});

 

event

String

 

  The name of the event you’re tracking. We recommend using    

  human-readable names like 'Played Song' or 'Updated  Status'.

 

properties  

Object, optional   

  An array of properties for the event. If the event was 'Shared  Product', it might have properties like 'price''category',

  etc.